From fd1a2bcba087af809cd3b14ad5ef9dae89cc7a57 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 15 Feb 2005 22:23:59 +0000 Subject: [PATCH] %exception fixes for C# git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6953 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/swig.swg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SWIG/Lib/swig.swg b/SWIG/Lib/swig.swg index 408f53172..de15542d7 100644 --- a/SWIG/Lib/swig.swg +++ b/SWIG/Lib/swig.swg @@ -59,8 +59,13 @@ /* Common features */ +#ifdef SWIGCSHARP +#define %exception %feature("except", canthrow=1) +#else #define %exception %feature("except") +#endif #define %noexception %feature("except","") + #define %newobject %feature("new") /* Warnings */