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:
parent
4aea80fac4
commit
a1c022562b
1 changed files with 10 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue