Improvements to the chicken module: tinyclos works with overloaded methods and some other changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
df8516b782
commit
c842f81d21
3 changed files with 307 additions and 62 deletions
|
|
@ -225,8 +225,10 @@ SWIG_Chicken_NewPointerObj(void *ptr, swig_type_info *type, int owner, C_word **
|
|||
else {
|
||||
C_word cptr = C_swigmpointer(data, ptr, type);
|
||||
/* add finalizer to object */
|
||||
#ifndef SWIG_CHICKEN_NO_COLLECTION
|
||||
if (owner)
|
||||
C_do_register_finalizer(cptr, (C_word) finalizer_obj);
|
||||
#endif
|
||||
|
||||
/* wrap the result inside a proxy class if one is available */
|
||||
if (cdata && cdata->gc_proxy_create) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue