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:
William S Fulton 2006-01-20 22:18:44 +00:00
commit 8629d7f513
3 changed files with 10 additions and 4 deletions

View file

@ -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;
}
%}