Update for new enum wrapping which uses the typesafe enum pattern
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5953 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4192a5025c
commit
a1c7dc1051
3 changed files with 18 additions and 25 deletions
|
|
@ -5,7 +5,7 @@ enum color { RED, BLUE, GREEN };
|
|||
class Foo {
|
||||
public:
|
||||
Foo() { }
|
||||
enum speed { IMPULSE, WARP, LUDICROUS };
|
||||
enum speed { IMPULSE=10, WARP=20, LUDICROUS=30 };
|
||||
void enum_test(speed s);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue