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
This commit is contained in:
Gonzalo Garramuno 2008-01-02 21:41:50 +00:00
commit 6120c93fc6

View file

@ -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