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:
parent
7613594cd9
commit
d1968e1dcb
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue