Added braces around some macros.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@227 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
59a1fe6847
commit
77497569e7
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue