Improved the swig_gc.rb interface.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9718 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ca5f54f668
commit
c1119d264a
3 changed files with 42 additions and 26 deletions
|
|
@ -23,12 +23,11 @@ require 'newobject1'
|
|||
|
||||
include Newobject1
|
||||
|
||||
|
||||
GC.stats(Foo)
|
||||
GC.track_class = Foo
|
||||
GC.start
|
||||
100.times { foo1 = Foo.makeFoo; foo2 = foo1.makeMore }
|
||||
GC.stats(Foo)
|
||||
GC.stats
|
||||
swig_assert( 'Foo.fooCount == 200', "but is #{Foo.fooCount}" )
|
||||
GC.start
|
||||
GC.stats(Foo)
|
||||
swig_assert( 'Foo.fooCount <= 2', "but is #{Foo.fooCount}" )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue