add the throws (...) typemap

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-12 06:10:27 +00:00
commit 6e72e8e7b5

View file

@ -258,6 +258,11 @@ SWIGINTERN void SWIG_CSharpException(int code, const char *msg) {
}
%enddef
/* rethrow the unknown exception */
%typemap(throws,noblock=1) (...) {
SWIG_exception(SWIG_RuntimeError,"unknown exception");
}
#endif /* __cplusplus */