more test cases, less cast operations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a9cc475443
commit
76c06cc3bb
3 changed files with 29 additions and 8 deletions
|
|
@ -33,11 +33,13 @@ int get_value(int *x, int i) {
|
|||
|
||||
class RayPacketData {
|
||||
public:
|
||||
enum {
|
||||
Size = 32
|
||||
};
|
||||
|
||||
Material const* hitMatl[Size];
|
||||
enum {
|
||||
Size = 32
|
||||
};
|
||||
|
||||
const Material * chitMat[Size];
|
||||
Material hitMat_val[Size];
|
||||
Material *hitMat[Size];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -73,3 +73,23 @@ int test_b(int a) {
|
|||
#endif
|
||||
%}
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
%inline
|
||||
{
|
||||
|
||||
struct Material
|
||||
{
|
||||
};
|
||||
|
||||
enum {
|
||||
Size = 32
|
||||
};
|
||||
|
||||
const Material * chitMat[Size];
|
||||
Material hitMat_val[Size];
|
||||
Material *hitMat[Size];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue