diff options
author | Gonzalo Garramuno <ggarra@advancedsl.com.ar> | 2008-01-02 21:41:50 +0000 |
---|---|---|
committer | Gonzalo Garramuno <ggarra@advancedsl.com.ar> | 2008-01-02 21:41:50 +0000 |
commit | 6120c93fc619fa4236d9e38082f26c4bc457fd86 (patch) | |
tree | 0020ecf448b56df74a6ad51ea853dabaeb801e62 /Lib/ruby/rubyhead.swg | |
parent | 7b89801c80752374a148eaf82b5396542fe08d71 (diff) | |
download | swig-6120c93fc619fa4236d9e38082f26c4bc457fd86.tar.gz |
Added a couple of new macros used in ruby1.9.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10198 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/ruby/rubyhead.swg')
-rw-r--r-- | Lib/ruby/rubyhead.swg | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/ruby/rubyhead.swg b/Lib/ruby/rubyhead.swg index f0eed4748..ca76e60b2 100644 --- a/Lib/ruby/rubyhead.swg +++ b/Lib/ruby/rubyhead.swg @@ -43,6 +43,14 @@ #ifndef RARRAY_PTR # define RARRAY_PTR(x) RARRAY(x)->ptr #endif +#ifndef RFLOAT_VALUE +#define RFLOAT_VALUE(x) RFLOAT(x)->value +#endif +#ifndef DOUBLE2NUM +#define DOUBLE2NUM(x) rb_float_new(x) +#endif + + /* * Need to be very careful about how these macros are defined, especially |