From 77497569e78e38dfd0a4dc91c1f6f54d36ec0fd6 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Fri, 11 Feb 2000 19:48:14 +0000 Subject: [PATCH] Added braces around some macros. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@227 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/exception.i | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SWIG/Lib/exception.i b/SWIG/Lib/exception.i index 8759c4e44..c13c0b74d 100644 --- a/SWIG/Lib/exception.i +++ b/SWIG/Lib/exception.i @@ -71,12 +71,12 @@ interface itself. #ifdef SWIGTCL8 %{ -#define SWIG_exception(a,b) Tcl_SetResult(interp,b,TCL_VOLATILE); return TCL_ERROR +#define SWIG_exception(a,b) { Tcl_SetResult(interp,b,TCL_VOLATILE); return TCL_ERROR; } %} #else #ifdef SWIGTCL %{ -#define SWIG_exception(a,b) Tcl_SetResult(interp,b,TCL_VOLATILE); return TCL_ERROR +#define SWIG_exception(a,b) { Tcl_SetResult(interp,b,TCL_VOLATILE); return TCL_ERROR; } %} #endif #endif @@ -133,7 +133,7 @@ static void _SWIG_exception(int code, char *msg) { } } -#define SWIG_exception(a,b) _SWIG_exception(a,b); return NULL +#define SWIG_exception(a,b) { _SWIG_exception(a,b); return NULL; } %} #endif