Vadim Zeitlin
c321aca2b4
Fix missing value for first item of enums with trailing comma
...
The value of the first item of an enum with a trailing comma after its
last item was not correctly initialized to 0 any more after the changes
of 74adaa5738 (see #1515 ) because "_last"
attribute was not set correctly in this case.
Do set it for the last item when it's followed by a comma too and add
more unit tests checking for this.
Closes #1566 .
2019-07-11 17:15:38 +02:00
William S Fulton
76bbd7373d
Fix wrapping of C++ enum boolean values when using %javaconst(1)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-14 19:03:01 +00:00
William S Fulton
d98658d30b
Suppress ecj warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10226 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-31 22:58:43 +00:00
William S Fulton
ea2a3a3925
const enum SWIGTYPE & typemap tests
...
more enum tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:13:27 +00:00
William S Fulton
e072f9b077
Test for %javaconstvalue added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6002 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-27 21:05:48 +00:00
William S Fulton
c88daea001
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
2004-05-24 20:05:40 +00:00
William S Fulton
399e9f5504
Modifications to testcase to test the enums and constants in a separate Java interface.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4662 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-03 12:30:26 +00:00
William S Fulton
792b701599
enum typemaps check
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-24 23:18:39 +00:00
William S Fulton
19daf19bfa
%javaconst(1) feature for enums so that using enum values do not have to make a JNI call.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-19 22:58:37 +00:00