add disown.i and li_attribute.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
46c43c51cd
commit
1fa14f74a7
12 changed files with 98 additions and 5 deletions
|
|
@ -15,10 +15,11 @@ CPP_TEST_CASES = \
|
|||
track_objects \
|
||||
track_objects_directors \
|
||||
primitive_types \
|
||||
li_attribute \
|
||||
li_cdata \
|
||||
li_cstring
|
||||
|
||||
C_TEST_CASES += \
|
||||
li_cdata \
|
||||
li_cstring
|
||||
|
||||
include $(srcdir)/../common.mk
|
||||
|
|
|
|||
9
Examples/test-suite/ruby/disown_runme.rb
Normal file
9
Examples/test-suite/ruby/disown_runme.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
require 'disown'
|
||||
|
||||
include Disown
|
||||
|
||||
|
||||
a = A.new
|
||||
b = B.new
|
||||
b.acquire(a)
|
||||
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
%typemap(argout) Foo** foo {
|
||||
/* %typemap(argout) Foo** foo */
|
||||
$result = SWIG_NewPointerObj((void *) *$1, $*1_descriptor, 0);
|
||||
$result = SWIG_NewPointerObj((void *) *$1, $*1_descriptor, $track);
|
||||
}
|
||||
|
||||
%apply SWIGTYPE *DISOWN {Foo* ownedFoo};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue