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:
Marcelo Matus 2006-01-07 00:57:44 +00:00
commit a29cb3bb02
3 changed files with 31 additions and 19 deletions

View file

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

View file

@ -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