From: Bob H. <bh...@co...> - 2009-10-07 19:21:22
|
I'm using SWIG 1.3.36. I have header that defines only this: #ifndef INCLUDE_VERTEX_ARRAY_H #define INCLUDE_VERTEX_ARRAY_H #include <common/CompactIndexArray.h> #include <mesh/mesh_types.h> namespace SDK { typedef CompactIndexArray VertexArray; } #endif I am including both the referenced headers (CompactIndexArray.h and mesh_types.h) in the SWIG interface file for SWIG to parse, but the typedef is not being created by SWIG. The id "VertexArray" doesn't appear in any of the generated files. "CompactIndexArray" is just a class. I assumed SWIG processed typedef's, so I'm wondering why this isn't available? Can I do some kind of alias in the interface file to make "CompactIndexArray" visible to the target language as "VertexArray"? |