test java arrays wrapping for dimensionless arrays
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6960 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a0ddc0cfe8
commit
6d4117591a
2 changed files with 27 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ CPP_TEST_CASES = \
|
|||
enum_thorough_typeunsafe \
|
||||
java_constants \
|
||||
java_enums \
|
||||
java_lib_arrays_dimensionless \
|
||||
java_lib_various \
|
||||
java_jnitypes \
|
||||
java_pragmas \
|
||||
|
|
|
|||
26
SWIG/Examples/test-suite/java_lib_arrays_dimensionless.i
Normal file
26
SWIG/Examples/test-suite/java_lib_arrays_dimensionless.i
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
%module java_lib_arrays_dimensionless
|
||||
|
||||
%include "arrays_java.i"
|
||||
|
||||
// Can't wrap dimensionless arrays, so we use the old pointer approach
|
||||
%apply SWIGTYPE* { int globalints[], int constglobalints[], int Bar::ints[] }
|
||||
|
||||
// Test %apply for arrays in arrays_java.i library file
|
||||
%apply bool [] { bool *array }
|
||||
%apply char [] { char *array }
|
||||
%apply signed char [] { signed char *array }
|
||||
%apply unsigned char [] { unsigned char *array }
|
||||
%apply short [] { short *array }
|
||||
%apply unsigned short [] { unsigned short *array }
|
||||
%apply int [] { int *array }
|
||||
%apply unsigned int [] { unsigned int *array }
|
||||
%apply long [] { long *array }
|
||||
%apply unsigned long [] { unsigned long *array }
|
||||
%apply long [] { long *array }
|
||||
%apply unsigned long long [] { unsigned long long *array }
|
||||
%apply float [] { float *array }
|
||||
%apply double [] { double *array }
|
||||
|
||||
%include "arrays_dimensionless.i"
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue