Gonzalo Garramuno | a1c0225 | 2007-04-29 20:48:37 +0000 | [diff] [blame] | 1 | |
| 2 | // Redefine these macros so argument index for ruby is done properly, |
Gonzalo Garramuno | a0b74a9 | 2007-04-30 06:36:55 +0000 | [diff] [blame] | 3 | // 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 Garramuno | a1c0225 | 2007-04-29 20:48:37 +0000 | [diff] [blame] | 5 | |
Gonzalo Garramuno | a0b74a9 | 2007-04-30 06:36:55 +0000 | [diff] [blame] | 6 | #define %argnullref_fmt(_type,_name,_argn) Ruby_Format_TypeError(%nullref_fmt(), _type, #_name, _argn, $input) |
Gonzalo Garramuno | a1c0225 | 2007-04-29 20:48:37 +0000 | [diff] [blame] | 7 | |
Gonzalo Garramuno | 4cd98d3 | 2007-05-04 13:12:31 +0000 | [diff] [blame] | 8 | %{ |
| 9 | #define SWIG_RUBY_THREAD_BEGIN_BLOCK |
| 10 | #define SWIG_RUBY_THREAD_END_BLOCK |
| 11 | %} |
Gonzalo Garramuno | a1c0225 | 2007-04-29 20:48:37 +0000 | [diff] [blame] | 12 | |
Marcelo Matus | 7e5e4fd | 2005-10-18 13:24:15 +0000 | [diff] [blame] | 13 | %include <typemaps/swigmacros.swg> |