Added braces around some macros.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@227 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-02-11 19:48:14 +00:00
commit d1968e1dcb

View file

@ -71,12 +71,12 @@ interface itself.
#ifdef SWIGTCL8 #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 #else
#ifdef SWIGTCL #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
#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 #endif