finishing the first stage of the typemap unification scheme, fixing issues with gcc and valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
733322c539
commit
ba3efb0917
44 changed files with 565 additions and 426 deletions
9
Lib/typemaps/exception.swg
Normal file
9
Lib/typemaps/exception.swg
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// 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)
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue