More subtle exception fixes for C# and Java. Workarournd for the wrong std_except.i file is being %include'd from java/stl.i and csharp/stl.i.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8222 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
170ba59d07
commit
c574b94787
1 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
#if defined(SWIGJAVA)
|
||||
%include <java/std_except.i>
|
||||
#elif defined(SWIGCSHARP)
|
||||
%include <csharp/std_except.i>
|
||||
#else
|
||||
|
||||
%include <std/std_except.i>
|
||||
|
||||
// Typemaps used by the STL wrappers that throw exceptions.
|
||||
|
|
@ -20,7 +26,7 @@
|
|||
%exceptionclass Exception;
|
||||
#if !defined(SWIG_STD_EXCEPTIONS_AS_CLASSES)
|
||||
%typemap(throws,noblock=1) Exception {
|
||||
SWIG_exception(Code, $1.what());
|
||||
SWIG_exception(Code, $1.what())
|
||||
}
|
||||
%ignore Exception;
|
||||
struct Exception {
|
||||
|
|
@ -42,4 +48,5 @@ namespace std {
|
|||
%std_exception_map(underflow_error, SWIG_OverflowError);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue