moving the 'unnamed' macros outside swig.swg, for better mantainance
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5809 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8566a10373
commit
efdc4c83dd
3 changed files with 57 additions and 34 deletions
14
Examples/test-suite/python/cpp_enum_runme.py
Normal file
14
Examples/test-suite/python/cpp_enum_runme.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import cpp_enum
|
||||
|
||||
f = cpp_enum.Foo()
|
||||
|
||||
f.hola = f.Hi
|
||||
if f.hola != f.Hi:
|
||||
print f.hola
|
||||
raise RuntimeError
|
||||
|
||||
f.hola = f.Hello
|
||||
|
||||
if f.hola != f.Hello:
|
||||
print f.hola
|
||||
raise RuntimeError
|
||||
Loading…
Add table
Add a link
Reference in a new issue