blob: de2a52ba7441613820533b4a6bff6cd69dc8b2a2 [file] [log] [blame]
Gonzalo Garramunoa1c02252007-04-29 20:48:37 +00001
2// Redefine these macros so argument index for ruby is done properly,
Gonzalo Garramunoa0b74a92007-04-30 06:36:55 +00003// ignoring self and we get some more info about the input.
4#define %argfail_fmt(_type,_name,_argn) Ruby_Format_TypeError( "", _type, #_name, _argn, $input )
Gonzalo Garramunoa1c02252007-04-29 20:48:37 +00005
Gonzalo Garramunoa0b74a92007-04-30 06:36:55 +00006#define %argnullref_fmt(_type,_name,_argn) Ruby_Format_TypeError(%nullref_fmt(), _type, #_name, _argn, $input)
Gonzalo Garramunoa1c02252007-04-29 20:48:37 +00007
Gonzalo Garramuno4cd98d32007-05-04 13:12:31 +00008%{
9#define SWIG_RUBY_THREAD_BEGIN_BLOCK
10#define SWIG_RUBY_THREAD_END_BLOCK
11%}
Gonzalo Garramunoa1c02252007-04-29 20:48:37 +000012
Marcelo Matus7e5e4fd2005-10-18 13:24:15 +000013%include <typemaps/swigmacros.swg>
OSZAR »