add %delobject, which is the equivalent of %newobject but for functions that delete an element. This allows to properly disown the argument, as the %newobject directive allows to 'own' the object
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
812bbb8d1a
commit
a05ba722d7
4 changed files with 13 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ public:
|
|||
class Foo;
|
||||
|
||||
%newobject new_Foo;
|
||||
%delobject delete_Foo;
|
||||
%inline %{
|
||||
|
||||
class Bar : public Foo {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue