1 #ifndef RBIMPL_ARITHMETIC_SHORT_H
2 #define RBIMPL_ARITHMETIC_SHORT_H
30 #define RB_NUM2SHORT rb_num2short_inline
31 #define RB_NUM2USHORT rb_num2ushort
32 #define NUM2SHORT RB_NUM2SHORT
33 #define NUM2USHORT RB_NUM2USHORT
34 #define USHORT2NUM RB_INT2FIX
35 #define RB_FIX2SHORT rb_fix2short
36 #define FIX2SHORT RB_FIX2SHORT
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 inline
Old Visual Studio versions do not support the inline keyword, so we need to define it to be __inline.
short rb_num2short(VALUE num)
Converts an instance of rb_cNumeric into C's short.
unsigned short rb_num2ushort(VALUE num)
Converts an instance of rb_cNumeric into C's unsigned short.
short rb_fix2short(VALUE num)
Identical to rb_num2short().
unsigned short rb_fix2ushort(VALUE num)
Identical to rb_num2ushort().
static short rb_num2short_inline(VALUE x)
Identical to rb_num2short().
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.