git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11589 626c5289-ae23-0410-ae9c-e8d60b6d4f22
16 lines
325 B
Text
16 lines
325 B
Text
%insert(runtime) "swigrun.swg";
|
|
%insert(runtime) "swigerrors.swg";
|
|
%insert(runtime) %{
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
void SWIG_Error(int code, const char *msg) {
|
|
Scierror(code, _("%s\n"), msg);
|
|
}
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(999, msg); } else
|
|
|
|
%}
|