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:
parent
a0dd20b4b7
commit
c6f20f2306
3 changed files with 141 additions and 22 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue