add in global array variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9668 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1f76e733a9
commit
6efec03cda
2 changed files with 39 additions and 2 deletions
|
|
@ -12,10 +12,14 @@ 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++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue