diff --git a/Lib/std_except.i b/Lib/std_except.i index de7cac9f5..a784e0206 100644 --- a/Lib/std_except.i +++ b/Lib/std_except.i @@ -1,3 +1,9 @@ +#if defined(SWIGJAVA) +%include +#elif defined(SWIGCSHARP) +%include +#else + %include // 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