summaryrefslogtreecommitdiff
path: root/Examples/test-suite/java_lib_arrays_dimensionless.i
blob: ec2676fdb61aa58786fc7344e719ab6f59d7e143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"