Support for Lua added - patch from Mark Gossage

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7365 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-08-15 20:58:56 +00:00
commit 3941e19141
27 changed files with 2266 additions and 0 deletions

View file

@ -0,0 +1,16 @@
require("import") -- the import fn
import("newobject2",true) -- import code into global
foo1 = makeFoo() -- lua doesnt yet support static fns properly
assert(fooCount() == 1) -- lua doesnt yet support static fns properly
foo2 = makeFoo()
assert(fooCount() == 2)
foo1 = nil
collectgarbage()
assert(fooCount() == 1)
foo2 = nil
collectgarbage()
assert(fooCount() == 0)