fix vector slice/del problems

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-06 02:31:31 +00:00
commit c6f20f2306
3 changed files with 141 additions and 22 deletions

View file

@ -340,6 +340,16 @@ static void SWIG_exception(int code, const char *msg) {
SWIG_exception(SWIG_SystemError, e.what() );
}
%enddef
%define SWIG_CATCH_UNKNOWN
catch (std::exception& e) {
SWIG_exception(SWIG_SystemError, e.what() );
}
catch (...) {
SWIG_exception(SWIG_UnknownError, "unknown exception");
}
%enddef
#endif // __cplusplus
/* exception.i ends here */