Reimplementation of tracking objects in Ruby. Instead of passing the $track flag to
the methods SWIG_Ruby_ConvertPtrAndOwn and SWIG_Ruby_NewPointerObj, now tracking information is held on swig_class. This change reduces significantly reduces the amount of code needed in ruby.cxx, is more robust, and is more cohesive. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c81c25f671
commit
6c8dd53ee8
4 changed files with 50 additions and 160 deletions
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
%typemap(argout) Foo** foo {
|
||||
/* %typemap(argout) Foo** foo */
|
||||
$result = SWIG_NewPointerObj((void *) *$1, $*1_descriptor, $track);
|
||||
$result = SWIG_NewPointerObj((void *) *$1, $*1_descriptor, 0);
|
||||
}
|
||||
|
||||
%apply SWIGTYPE *DISOWN {Foo* ownedFoo};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue