add the throws (...) typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5f637015c2
commit
46b2008536
1 changed files with 5 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue