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@8318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-09 17:35:04 +00:00
commit 9fb217b048
4 changed files with 13 additions and 0 deletions

View file

@ -99,6 +99,12 @@
#define %nonewobject %feature("new","0")
#define %clearnewobject %feature("new","")
/* the %delobject directive */
#define %delobject %feature("del")
#define %nodelobject %feature("del","0")
#define %cleardelobject %feature("del","")
/* the %refobject/%unrefobject directives */
#define %refobject %feature("ref")