Use -globals . to load global variables in module namespace (from Karl Wette)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
320a83627c
commit
6cd79f4320
4 changed files with 28 additions and 7 deletions
|
|
@ -38,3 +38,11 @@ example -globals mycvar
|
|||
assert(!isglobal("cvar"))
|
||||
assert(mycvar.ivar == example.ifunc())
|
||||
##### END TEST #####
|
||||
|
||||
clear all;
|
||||
|
||||
##### BEGIN TEST #####
|
||||
# load module with root-level cvar
|
||||
example -globals .
|
||||
assert(example.ivar == example.ifunc())
|
||||
##### END TEST #####
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue