PageRenderTime 21ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/java_lib_arrays_dimensionless.i

#
Swig | 26 lines | 20 code | 6 blank | 0 comment | 0 complexity | ce4ca61f4bcd89967994415c8c0d26f9 MD5 | raw file
 1%module java_lib_arrays_dimensionless
 2
 3%include "arrays_java.i"
 4
 5// Can't wrap dimensionless arrays, so we use the old pointer approach
 6%apply SWIGTYPE* { int globalints[], int constglobalints[], int Bar::ints[] }
 7
 8// Test %apply for arrays in arrays_java.i library file
 9%apply bool []                  { bool *array }
10%apply char []                  { char *array }
11%apply signed char []           { signed char *array }
12%apply unsigned char []         { unsigned char *array }
13%apply short []                 { short *array }
14%apply unsigned short []        { unsigned short *array }
15%apply int []                   { int *array }
16%apply unsigned int []          { unsigned int *array }
17%apply long []                  { long *array }
18%apply unsigned long []         { unsigned long *array }
19%apply long []                  { long *array }
20%apply unsigned long long []    { unsigned long long *array }
21%apply float []                 { float *array }
22%apply double []                { double *array }
23
24%include "arrays_dimensionless.i"
25
26