//These appear in some files but not in others. define them if we have to. #ifdef SWIG #define __attribute__(x) #endif #ifndef SWIG_as_voidptr #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) #endif #ifndef SWIG_as_voidptrptr #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) #endif #ifndef SWIG_IsOK #define SWIG_IsOK(r) (r >= 0) #endif #ifndef SWIG_Error #define SWIG_Error(code, msg) std::cout<<"SWIG_Error(errorcode, "<