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:
parent
7b89801c80
commit
6120c93fc6
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue