1 #ifndef RBIMPL_GLOBALS_H
2 #define RBIMPL_GLOBALS_H
54 #define RUBY_INTEGER_UNIFICATION 1
199 RUBY_ASSERT_FAIL(
"unexpected type");
203 #define CLASS_OF rb_class_of
Tweaking visibility of C variables/functions.
#define RUBY_EXTERN
Declaration of externally visible global variables.
#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" {.
Defines enum ruby_fl_type.
#define Qfalse
Old name of RUBY_Qfalse.
VALUE rb_eLocalJumpError
LocalJumpError exception.
VALUE rb_eNotImpError
NotImplementedError exception.
VALUE rb_eScriptError
ScriptError exception.
VALUE rb_eKeyError
KeyError exception.
VALUE rb_eSystemExit
SystemExit exception.
VALUE rb_eZeroDivError
ZeroDivisionError exception.
VALUE rb_eIOError
IOError exception.
VALUE rb_eStandardError
StandardError exception.
VALUE rb_eRegexpError
RegexpError exception.
VALUE rb_eFrozenError
FrozenError exception.
VALUE rb_eNoMemError
NoMemoryError exception.
VALUE rb_eRangeError
RangeError exception.
VALUE rb_eLoadError
LoadError exception.
VALUE rb_eTypeError
TypeError exception.
VALUE rb_eEOFError
EOFError exception.
VALUE rb_eNoMatchingPatternError
NoMatchingPatternError exception.
VALUE rb_eEncCompatError
Encoding::CompatibilityError exception.
VALUE rb_eFatal
fatal exception.
VALUE rb_eInterrupt
Interrupt exception.
VALUE rb_eNameError
NameError exception.
VALUE rb_eNoMethodError
NoMethodError exception.
VALUE rb_eRuntimeError
RuntimeError exception.
VALUE rb_eStopIteration
StopIteration exception.
VALUE rb_eFloatDomainError
FloatDomainError exception.
VALUE rb_eNoMatchingPatternKeyError
NoMatchingPatternKeyError exception.
VALUE rb_eArgError
ArgumentError exception.
VALUE rb_eException
Mother of all exceptions.
VALUE rb_eIndexError
IndexError exception.
VALUE rb_eSysStackError
SystemStackError exception.
VALUE rb_eSyntaxError
SyntaxError exception.
VALUE rb_eEncodingError
EncodingError exception.
VALUE rb_eSecurityError
SecurityError exception.
VALUE rb_eThreadError
ThreadError exception.
VALUE rb_eMathDomainError
Math::DomainError exception.
VALUE rb_eSystemCallError
SystemCallError exception.
VALUE rb_eSignal
SignalException exception.
VALUE rb_cClass
Class class.
VALUE rb_cRational
Rational class.
VALUE rb_cUnboundMethod
UnboundMethod class.
VALUE rb_cTime
Time class.
VALUE rb_mKernel
Kernel module.
VALUE rb_cComplex
Complex class.
VALUE rb_cArray
Array class.
VALUE rb_cNameErrorMesg
NameError::Message class.
VALUE rb_cObject
Object class.
VALUE rb_mProcess
Process module.
VALUE rb_mMath
Math module.
VALUE rb_mEnumerable
Enumerable module.
VALUE rb_cMatch
MatchData class.
VALUE rb_mErrno
Errno module.
VALUE rb_cStruct
Struct class.
VALUE rb_cEnumerator
Enumerator class.
VALUE rb_cRefinement
Refinement class.
VALUE rb_cInteger
Module class.
VALUE rb_cNilClass
NilClass class.
VALUE rb_stdin
STDIN constant.
VALUE rb_cStat
File::Stat class.
VALUE rb_cBinding
Binding class.
VALUE rb_cRegexp
Regexp class.
VALUE rb_cHash
Hash class.
VALUE rb_stderr
STDERR constant.
VALUE rb_cFalseClass
FalseClass class.
VALUE rb_cNumeric
Numeric class.
static VALUE rb_class_of(VALUE obj)
Object to class mapping function.
VALUE rb_cRandom
Random class.
VALUE rb_cEncoding
Encoding class.
VALUE rb_cSymbol
Symbol class.
VALUE rb_cBasicObject
BasicObject class.
VALUE rb_cThread
Thread class.
VALUE rb_cModule
Module class.
VALUE rb_cRange
Range class.
VALUE rb_mFileTest
FileTest module.
VALUE rb_mWaitReadable
IO::WaitReadable module.
VALUE rb_mWaitWritable
IO::WaitReadable module.
VALUE rb_mComparable
Comparable module.
VALUE rb_cFloat
Float class.
VALUE rb_cProc
Proc class.
VALUE rb_cFile
File class.
VALUE rb_cTrueClass
TrueClass class.
VALUE rb_stdout
STDOUT constant.
VALUE rb_cString
String class.
VALUE rb_cMethod
Method class.
RBIMPL_ATTR_PURE() int rb_io_read_pending(rb_io_t *fptr)
Queries if the passed IO has any pending reads.
#define RBIMPL_UNREACHABLE_RETURN(_)
Wraps (or simulates) __builtin_unreachable.
#define inline
Old Visual Studio versions do not support the inline keyword, so we need to define it to be __inline.
Defines RBIMPL_ATTR_PURE.
static VALUE RBASIC_CLASS(VALUE obj)
Queries the class of an object.
Defines enum ruby_special_consts.
static bool RB_STATIC_SYM_P(VALUE obj)
Checks if the given object is a static symbol.
static bool RB_FIXNUM_P(VALUE obj)
Checks if the given object is a so-called Fixnum.
static bool RB_SPECIAL_CONST_P(VALUE obj)
Checks if the given object is of enum ruby_special_consts.
static bool RB_FLONUM_P(VALUE obj)
Checks if the given object is a so-called Flonum.
uintptr_t VALUE
Type that represents a Ruby object.
Defines enum ruby_value_type.