swig/Lib/ruby/rubymacros.swg
Gonzalo Garramuno a1c022562b 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
2007-04-29 20:48:37 +00:00

11 lines
326 B
Text

// 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>