swig/Examples/test-suite/java_lib_arrays.i
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

21 lines
509 B
OpenEdge ABL

/* Testcase for the Java array typemaps which are not used by default. */
%module java_lib_arrays
%include "enumtypeunsafe.swg"
/* Use the Java library typemaps */
%include "arrays_java.i"
JAVA_ARRAYSOFCLASSES(SimpleStruct)
%apply ARRAYSOFENUMS[ANY] { finger[ANY] }
%include "arrays.i"
// This will test the %typemap(javacode) in the JAVA_ARRAYSOFCLASSES works with C structs amongst other things
JAVA_ARRAYSOFCLASSES(struct AnotherStruct)
%inline %{
struct AnotherStruct {
SimpleStruct simple;
};
%}