use one line macro when possible

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-10 09:24:28 +00:00
commit 3eeba5ef94
2 changed files with 3 additions and 9 deletions

View file

@ -52,9 +52,7 @@
/* Complete overload of the output/constant/exception macros */
/* output */
%define %set_output(obj)
$result = obj;
argvi++ %enddef
%define %set_output(obj) $result = obj; argvi++ %enddef
/* append output */
%define %append_output(obj)
@ -75,9 +73,7 @@
%end_block %enddef
/* raise exception */
%define %raise(obj, type, desc)
sv_setsv(GvSV(PL_errgv), obj);
SWIG_fail %enddef
%define %raise(obj, type, desc) sv_setsv(GvSV(PL_errgv), obj); SWIG_fail %enddef
/* Include the unified typemap library */
%include <typemaps/swigtypemaps.swg>