Ruby free function declaration change
Declare function taking void * parameter to be more flexible for upcoming smart pointer support.
This commit is contained in:
parent
604b3d009c
commit
4d4c7eca9a
1 changed files with 3 additions and 1 deletions
|
|
@ -2718,7 +2718,9 @@ public:
|
|||
String *pname0 = Swig_cparm_name(0, 0);
|
||||
|
||||
Printv(freefunc, "free_", klass->mname, NIL);
|
||||
Printv(freebody, "SWIGINTERN void\n", freefunc, "(", klass->type, " *", pname0, ") {\n", tab4, NIL);
|
||||
Printv(freebody, "SWIGINTERN void\n", freefunc, "(void *self) {\n", NIL);
|
||||
Printv(freebody, tab4, klass->type, " *", pname0, " = (", klass->type, " *)self;\n", NIL);
|
||||
Printv(freebody, tab4, NIL);
|
||||
|
||||
/* Check to see if object tracking is activated for the class
|
||||
that owns this destructor. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue