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:
Gonzalo Garramuno 2007-04-29 23:52:22 +00:00
commit c1119d264a
3 changed files with 42 additions and 26 deletions

View file

@ -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}" )