add in check for array inputs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8496 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0a81874538
commit
250d3f8244
3 changed files with 10 additions and 4 deletions
|
|
@ -17,5 +17,8 @@ JAVA_ARRAYSOFCLASSES(struct AnotherStruct)
|
|||
struct AnotherStruct {
|
||||
SimpleStruct simple;
|
||||
};
|
||||
double extract(struct AnotherStruct as[], int index) {
|
||||
return as[index].simple.double_field;
|
||||
}
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue