1 #ifndef RBIMPL_ARITHMETIC_LONG_LONG_H
2 #define RBIMPL_ARITHMETIC_LONG_LONG_H
28 #define RB_LL2NUM rb_ll2num_inline
29 #define RB_ULL2NUM rb_ull2num_inline
30 #define LL2NUM RB_LL2NUM
31 #define ULL2NUM RB_ULL2NUM
32 #define RB_NUM2LL rb_num2ll_inline
33 #define RB_NUM2ULL rb_num2ull_inline
34 #define NUM2LL RB_NUM2LL
35 #define NUM2ULL RB_NUM2ULL
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" {.
#define FIXABLE
Old name of RB_FIXABLE.
#define LONG2FIX
Old name of RB_INT2FIX.
#define POSFIXABLE
Old name of RB_POSFIXABLE.
LONG_LONG rb_num2ll(VALUE num)
Converts an instance of rb_cNumeric into C's long long.
unsigned LONG_LONG rb_num2ull(VALUE num)
Converts an instance of rb_cNumeric into C's unsigned long long.
static VALUE rb_ull2num_inline(unsigned LONG_LONG n)
Converts a C's unsigned long long into an instance of rb_cInteger.
VALUE rb_ull2inum(unsigned LONG_LONG num)
Converts a C's unsigned long long into an instance of rb_cInteger.
static VALUE rb_ll2num_inline(LONG_LONG n)
Converts a C's long long into an instance of rb_cInteger.
VALUE rb_ll2inum(LONG_LONG num)
Converts a C's long long into an instance of rb_cInteger.
static LONG_LONG rb_num2ll_inline(VALUE x)
Converts an instance of rb_cNumeric into C's long long.
static unsigned LONG_LONG rb_num2ull_inline(VALUE x)
Converts an instance of rb_cNumeric into C's unsigned long long.
#define RB_FIX2LONG
Just another name of rb_fix2long.
#define inline
Old Visual Studio versions do not support the inline keyword, so we need to define it to be __inline.
Defines enum ruby_special_consts.
static bool RB_FIXNUM_P(VALUE obj)
Checks if the given object is a so-called Fixnum.
uintptr_t VALUE
Type that represents a Ruby object.