This example both shows the new enum literal facility, and is a regression
test against the enum scoping problem I had. Ocaml.cxx: Accidentally reintroduced the enum scoping problem, so I added an example that will fail if this is ever broken again. I encountered the actual problem in avifile.h git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fbb9c8481d
commit
87f4bcef2e
6 changed files with 67 additions and 6 deletions
5
SWIG/Examples/ocaml/scoped_enum/foo.h
Normal file
5
SWIG/Examples/ocaml/scoped_enum/foo.h
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
namespace foo {
|
||||
enum Bar { Tag1, Tag2 };
|
||||
static void f( Bar b ) { printf( "b = %d\n", (int)b ); }
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue