git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9668 626c5289-ae23-0410-ae9c-e8d60b6d4f22
28 lines
512 B
OpenEdge ABL
28 lines
512 B
OpenEdge ABL
%module li_carrays
|
|
|
|
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) doubleArray; /* Ruby, wrong class name */
|
|
|
|
%include <carrays.i>
|
|
|
|
%array_functions(int,intArray);
|
|
%array_class(double, doubleArray);
|
|
|
|
%inline %{
|
|
typedef struct {
|
|
int x;
|
|
int y;
|
|
} XY;
|
|
XY globalXYArray[3];
|
|
|
|
typedef struct {
|
|
int a;
|
|
int b;
|
|
} AB;
|
|
|
|
AB globalABArray[3];
|
|
%}
|
|
|
|
// Note that struct XY { ... }; gives compiler error for C when using %array_class or %array_functions, but is okay in C++
|
|
%array_class(XY, XYArray)
|
|
%array_functions(AB, ABArray)
|
|
|