1 #ifndef RBIMPL_ARITHMETIC_DOUBLE_H
2 #define RBIMPL_ARITHMETIC_DOUBLE_H
27 #define NUM2DBL rb_num2dbl
28 #define RFLOAT_VALUE rb_float_value
29 #define DBL2NUM rb_float_new
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
double rb_float_value(VALUE num)
Extracts its double value from an instance of rb_cFloat.
VALUE rb_float_new_in_heap(double d)
Identical to rb_float_new(), except it does not generate Flonums.
VALUE rb_float_new(double d)
Converts a C's double into an instance of rb_cFloat.
double rb_num2dbl(VALUE num)
Converts an instance of rb_cNumeric into C's double.
RBIMPL_ATTR_PURE() int rb_io_read_pending(rb_io_t *fptr)
Queries if the passed IO has any pending reads.
Defines RBIMPL_ATTR_PURE.
uintptr_t VALUE
Type that represents a Ruby object.