add in check for array inputs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8496 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
25c581e0b6
commit
8629d7f513
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