test %array_class and %array_functions of non primitive type added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9667 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
85a3666f7c
commit
1f76e733a9
2 changed files with 70 additions and 0 deletions
|
|
@ -7,3 +7,18 @@
|
|||
%array_functions(int,intArray);
|
||||
%array_class(double, doubleArray);
|
||||
|
||||
%inline %{
|
||||
typedef struct {
|
||||
int x;
|
||||
int y;
|
||||
} XY;
|
||||
typedef struct {
|
||||
int a;
|
||||
int b;
|
||||
} AB;
|
||||
%}
|
||||
|
||||
// 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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue