aboutsummaryrefslogtreecommitdiff
path: root/Lib/exception.i
diff options
context:
space:
mode:
authorMarcelo Matus <mmatus@acms.arizona.edu>2006-03-01 23:27:03 +0000
committerMarcelo Matus <mmatus@acms.arizona.edu>2006-03-01 23:27:03 +0000
commitc2485c17a0287a347b35bd75b5b21b8027d7e35c (patch)
tree01a2b396d0ed5257a540fe113caf24e9b20ee17b /Lib/exception.i
parent598be9b11cb6785ec7a71862dd9c3dc9b90543cd (diff)
downloadswig-c2485c17a0287a347b35bd75b5b21b8027d7e35c.tar.gz
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
Diffstat (limited to 'Lib/exception.i')
-rw-r--r--Lib/exception.i16
1 files changed, 4 insertions, 12 deletions
diff --git a/Lib/exception.i b/Lib/exception.i
index 2cafa7813..b105ee433 100644
--- a/Lib/exception.i
+++ b/Lib/exception.i
@@ -122,12 +122,8 @@ SWIGINTERN void SWIG_JavaException(JNIEnv *jenv, int code, const char *msg) {
}
%}
-%define SWIG_exception(code, msg)
-{
- SWIG_JavaException(jenv, code, msg);
- return $null;
-}
-%enddef
+#define SWIG_exception(code, msg)\
+{ SWIG_JavaException(jenv, code, msg); return $null; }
#endif // SWIGJAVA
#ifdef SWIGOCAML
@@ -197,12 +193,8 @@ SWIGINTERN void SWIG_CSharpException(int code, const char *msg) {
}
%}
-%define SWIG_exception(code, msg)
-{
- SWIG_CSharpException(code, msg);
- return $null;
-}
-%enddef
+#define SWIG_exception(code, msg)\
+{ SWIG_CSharpException(code, msg); return $null; }
#endif // SWIGCSHARP
#ifdef SWIGLUA