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:
Marcelo Matus 2004-03-31 04:18:11 +00:00
commit efdc4c83dd
3 changed files with 57 additions and 34 deletions

View 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