New default C/C++ enum wrapping approach which uses the type safe enum pattern for Java and C#
Also tests for Java and C# simple enums (enum items mapped to integers) Also proper Java (J2SDK1.5) enums git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5919 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3d51247b24
commit
c88daea001
6 changed files with 41 additions and 5 deletions
7
Examples/test-suite/enum_thorough_simple.i
Normal file
7
Examples/test-suite/enum_thorough_simple.i
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
%module "enum_thorough_simple"
|
||||
|
||||
// Test enum wrapping using simple constants (SWIG-1.3.21 and earlier default enum wrapping for C# and Java)
|
||||
%include "enumsimple.swg"
|
||||
|
||||
%include "enum_thorough.i"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue