From 6120c93fc619fa4236d9e38082f26c4bc457fd86 Mon Sep 17 00:00:00 2001 From: Gonzalo Garramuno Date: Wed, 2 Jan 2008 21:41:50 +0000 Subject: 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 --- Lib/ruby/rubyhead.swg | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Lib/ruby/rubyhead.swg') 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 -- cgit v1.2.1