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:
parent
f498799a5b
commit
3941e19141
27 changed files with 2266 additions and 0 deletions
9
Examples/test-suite/lua/ret_by_value_runme.lua
Normal file
9
Examples/test-suite/lua/ret_by_value_runme.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
require("import") -- the import fn
|
||||
import("ret_by_value") -- import code
|
||||
|
||||
-- catch "undefined" global variables
|
||||
setmetatable(getfenv(),{__index=function (t,i) error("undefined global variable `"..i.."'",2) end})
|
||||
|
||||
a = ret_by_value.get_test()
|
||||
assert(a.myInt == 100)
|
||||
assert(a.myShort == 200)
|
||||
Loading…
Add table
Add a link
Reference in a new issue