From a1c022562b3c33ce2d6b0c48af14f6b00b781acb Mon Sep 17 00:00:00 2001 From: Gonzalo Garramuno Date: Sun, 29 Apr 2007 20:48:37 +0000 Subject: [PATCH] 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 --- Lib/ruby/rubymacros.swg | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Lib/ruby/rubymacros.swg b/Lib/ruby/rubymacros.swg index 4fd0d1f90..54959c202 100644 --- a/Lib/ruby/rubymacros.swg +++ b/Lib/ruby/rubymacros.swg @@ -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