From 3a34297ceff80122a380bab8252dc9b045e3efb5 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 22 Jul 2005 21:42:00 +0000 Subject: [PATCH] SWIG_exception mods git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7344 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/csharp_exceptions.i | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Examples/test-suite/csharp_exceptions.i b/Examples/test-suite/csharp_exceptions.i index 870e01790..36a0cff4e 100644 --- a/Examples/test-suite/csharp_exceptions.i +++ b/Examples/test-suite/csharp_exceptions.i @@ -143,12 +143,11 @@ unsigned short ushorttest() { return 100; } %} // test SWIG_exception macro - it must return from unmanaged code without executing any further unmanaged code -%typemap(check, canthrow=1) int macrotest %{ +%typemap(check, canthrow=1) int macrotest { if ($1 < 0) { SWIG_exception(SWIG_IndexError, "testing SWIG_exception macro"); - return $null; } -%} +} %inline %{ bool exception_macro_run_flag = false; void exceptionmacrotest(int macrotest) {