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

@ -41,9 +41,7 @@
#define SWIG_SetConstant(name, obj) rb_define_const($module, name, obj)
/* raise */
%define SWIG_Raise(obj, type, desc)
VALUE exc = SWIG_Ruby_ExceptionType(desc, obj);
rb_exc_raise(exc)%enddef
#define SWIG_Raise(obj, type, desc) rb_exc_raise(SWIG_Ruby_ExceptionType(desc, obj))
/* Include the unified typemap library */
%include <typemaps/swigtypemaps.swg>