more test cases, less cast operations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
76c06cc3bb
commit
a29cb3bb02
3 changed files with 31 additions and 19 deletions
|
|
@ -40,6 +40,10 @@ int get_value(int *x, int i) {
|
|||
const Material * chitMat[Size];
|
||||
Material hitMat_val[Size];
|
||||
Material *hitMat[Size];
|
||||
|
||||
const Material * chitMat2[Size][Size];
|
||||
Material hitMat_val2[Size][Size];
|
||||
Material *hitMat2[Size][Size];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,3 +40,22 @@ int get_2d_array(int (*array)[ARRAY_LEN_Y], int x, int y){
|
|||
}
|
||||
%}
|
||||
|
||||
#ifdef __cplusplus
|
||||
%inline
|
||||
{
|
||||
|
||||
struct Material
|
||||
{
|
||||
};
|
||||
|
||||
enum {
|
||||
Size = 32
|
||||
};
|
||||
|
||||
const Material * chitMat[Size][Size];
|
||||
Material hitMat_val[Size][Size];
|
||||
Material *hitMat[Size][Size];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue