#define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str)