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:
parent
695b448cd4
commit
6e72e8e7b5
1 changed files with 5 additions and 0 deletions
|
|
@ -258,6 +258,11 @@ SWIGINTERN void SWIG_CSharpException(int code, const char *msg) {
|
||||||
}
|
}
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
|
/* rethrow the unknown exception */
|
||||||
|
|
||||||
|
%typemap(throws,noblock=1) (...) {
|
||||||
|
SWIG_exception(SWIG_RuntimeError,"unknown exception");
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue