diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2006-01-12 06:10:27 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2006-01-12 06:10:27 +0000 |
commit | 6e72e8e7b589d7abf6aaaf9a7d79037b11013081 (patch) | |
tree | 9f6eb9749620bb9df0464b1a88e94840bd1245cc /Lib/exception.i | |
parent | 695b448cd4dfdafcb94137a4ecbb2a2c0ec4f5a3 (diff) | |
download | swig-6e72e8e7b589d7abf6aaaf9a7d79037b11013081.tar.gz |
add the throws (...) typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/exception.i')
-rw-r--r-- | Lib/exception.i | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/exception.i b/Lib/exception.i index 7a6800bf7..d81f76cbe 100644 --- a/Lib/exception.i +++ b/Lib/exception.i @@ -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 */ |