Replaced swig's common error macros to printout

ruby's index properly.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9709 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Gonzalo Garramuno 2007-04-29 20:48:37 +00:00
commit a1c022562b

View file

@ -1 +1,11 @@
// Redefine these macros so argument index for ruby is done properly,
// ignoring self.
#define %argfail_fmt(_type,_name,_argn) \
Ruby_Format_TypeError( "", _type, #_name, _argn )
#define %argnullref_fmt(_type,_name,_argn) \
Ruby_Format_TypeError(%nullref_fmt(), _type, #_name, _argn)
%include <typemaps/swigmacros.swg>