Add Lua pointer reference typemaps

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10363 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-04-07 20:06:37 +00:00
commit 929f68b069
4 changed files with 21 additions and 3 deletions

View file

@ -51,6 +51,7 @@ CPP_TEST_BROKEN += \
extend_variable \
namespace_union \
nested_comment \
operator_overload_break \
overload_complicated \
template_default_pointer \
template_expr
@ -207,7 +208,6 @@ CPP_TEST_CASES += \
newobject1 \
ordering \
operator_overload \
operator_overload_break \
overload_copy \
overload_extend \
overload_rename \

View file

@ -0,0 +1,11 @@
require("import") -- the import fn
import("pointer_reference",true) -- import code
s=pointer_reference.get()
assert(s.value == 10)
ss = pointer_reference.Struct(20);
pointer_reference.set(ss);
assert(pointer_reference.Struct_instance.value == 20)