git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
9 lines
348 B
Text
9 lines
348 B
Text
// This SWIG library file provides language independent exception handling
|
|
%include <typemaps/swigmacros.swg>
|
|
|
|
%insert("runtime") {
|
|
|
|
SWIG_define(SWIG_exception(code, msg), SWIG_block(SWIG_error(code, msg); SWIG_fail))
|
|
SWIG_define(SWIG_contract_assert(expr, msg), if (!(expr)) { SWIG_error(SWIG_RuntimeError, msg); SWIG_fail; } else)
|
|
|
|
}
|