reduce polution of macro comments by using one line macros
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8922 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
598be9b11c
commit
c2485c17a0
1 changed files with 4 additions and 12 deletions
|
|
@ -122,12 +122,8 @@ SWIGINTERN void SWIG_JavaException(JNIEnv *jenv, int code, const char *msg) {
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%define SWIG_exception(code, msg)
|
#define SWIG_exception(code, msg)\
|
||||||
{
|
{ SWIG_JavaException(jenv, code, msg); return $null; }
|
||||||
SWIG_JavaException(jenv, code, msg);
|
|
||||||
return $null;
|
|
||||||
}
|
|
||||||
%enddef
|
|
||||||
#endif // SWIGJAVA
|
#endif // SWIGJAVA
|
||||||
|
|
||||||
#ifdef SWIGOCAML
|
#ifdef SWIGOCAML
|
||||||
|
|
@ -197,12 +193,8 @@ SWIGINTERN void SWIG_CSharpException(int code, const char *msg) {
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%define SWIG_exception(code, msg)
|
#define SWIG_exception(code, msg)\
|
||||||
{
|
{ SWIG_CSharpException(code, msg); return $null; }
|
||||||
SWIG_CSharpException(code, msg);
|
|
||||||
return $null;
|
|
||||||
}
|
|
||||||
%enddef
|
|
||||||
#endif // SWIGCSHARP
|
#endif // SWIGCSHARP
|
||||||
|
|
||||||
#ifdef SWIGLUA
|
#ifdef SWIGLUA
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue