Ruby  3.4.0dev (2024-11-05 revision 348a53415339076afc4a02fcd09f3ae36e9c4c61)
Macros | Functions | Variables
globals.h File Reference

(348a53415339076afc4a02fcd09f3ae36e9c4c61)

Ruby-level global variables / constants, visible from C. More...

#include "ruby/internal/attr/pure.h"
#include "ruby/internal/dllexport.h"
#include "ruby/internal/fl_type.h"
#include "ruby/internal/special_consts.h"
#include "ruby/internal/value.h"
#include "ruby/internal/value_type.h"
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RUBY_INTEGER_UNIFICATION   1
 
#define CLASS_OF   rb_class_of
 Old name of rb_class_of. More...
 

Functions

static VALUE rb_class_of (VALUE obj)
 Object to class mapping function. More...
 

Variables

VALUE rb_mKernel
 Kernel module. More...
 
VALUE rb_mComparable
 Comparable module. More...
 
VALUE rb_mEnumerable
 Enumerable module. More...
 
VALUE rb_mErrno
 Errno module. More...
 
VALUE rb_mFileTest
 FileTest module. More...
 
VALUE rb_mGC
 GC module. More...
 
VALUE rb_mMath
 Math module. More...
 
VALUE rb_mProcess
 Process module. More...
 
VALUE rb_mWaitReadable
 IO::WaitReadable module. More...
 
VALUE rb_mWaitWritable
 IO::WaitReadable module. More...
 
VALUE rb_cBasicObject
 BasicObject class. More...
 
VALUE rb_cObject
 Object class. More...
 
VALUE rb_cArray
 Array class. More...
 
VALUE rb_cBinding
 Binding class. More...
 
VALUE rb_cClass
 Class class. More...
 
VALUE rb_cDir
 Dir class. More...
 
VALUE rb_cEncoding
 Encoding class. More...
 
VALUE rb_cEnumerator
 Enumerator class. More...
 
VALUE rb_cFalseClass
 FalseClass class. More...
 
VALUE rb_cFile
 File class. More...
 
VALUE rb_cComplex
 Complex class. More...
 
VALUE rb_cFloat
 Float class. More...
 
VALUE rb_cHash
 Hash class. More...
 
VALUE rb_cIO
 IO class. More...
 
VALUE rb_cInteger
 Module class. More...
 
VALUE rb_cMatch
 MatchData class. More...
 
VALUE rb_cMethod
 Method class. More...
 
VALUE rb_cModule
 Module class. More...
 
VALUE rb_cRefinement
 Refinement class. More...
 
VALUE rb_cNameErrorMesg
 NameError::Message class. More...
 
VALUE rb_cNilClass
 NilClass class. More...
 
VALUE rb_cNumeric
 Numeric class. More...
 
VALUE rb_cProc
 Proc class. More...
 
VALUE rb_cRandom
 Random class. More...
 
VALUE rb_cRange
 Range class. More...
 
VALUE rb_cRational
 Rational class. More...
 
VALUE rb_cRegexp
 Regexp class. More...
 
VALUE rb_cStat
 File::Stat class. More...
 
VALUE rb_cString
 String class. More...
 
VALUE rb_cStruct
 Struct class. More...
 
VALUE rb_cSymbol
 Symbol class. More...
 
VALUE rb_cThread
 Thread class. More...
 
VALUE rb_cTime
 Time class. More...
 
VALUE rb_cTrueClass
 TrueClass class. More...
 
VALUE rb_cUnboundMethod
 UnboundMethod class. More...
 
VALUE rb_eException
 Mother of all exceptions. More...
 
VALUE rb_eStandardError
 StandardError exception. More...
 
VALUE rb_eSystemExit
 SystemExit exception. More...
 
VALUE rb_eInterrupt
 Interrupt exception. More...
 
VALUE rb_eSignal
 SignalException exception. More...
 
VALUE rb_eFatal
 fatal exception. More...
 
VALUE rb_eArgError
 ArgumentError exception. More...
 
VALUE rb_eEOFError
 EOFError exception. More...
 
VALUE rb_eIndexError
 IndexError exception. More...
 
VALUE rb_eStopIteration
 StopIteration exception. More...
 
VALUE rb_eKeyError
 KeyError exception. More...
 
VALUE rb_eRangeError
 RangeError exception. More...
 
VALUE rb_eIOError
 IOError exception. More...
 
VALUE rb_eRuntimeError
 RuntimeError exception. More...
 
VALUE rb_eFrozenError
 FrozenError exception. More...
 
VALUE rb_eSecurityError
 SecurityError exception. More...
 
VALUE rb_eSystemCallError
 SystemCallError exception. More...
 
VALUE rb_eThreadError
 ThreadError exception. More...
 
VALUE rb_eTypeError
 TypeError exception. More...
 
VALUE rb_eZeroDivError
 ZeroDivisionError exception. More...
 
VALUE rb_eNotImpError
 NotImplementedError exception. More...
 
VALUE rb_eNoMemError
 NoMemoryError exception. More...
 
VALUE rb_eNoMethodError
 NoMethodError exception. More...
 
VALUE rb_eFloatDomainError
 FloatDomainError exception. More...
 
VALUE rb_eLocalJumpError
 LocalJumpError exception. More...
 
VALUE rb_eSysStackError
 SystemStackError exception. More...
 
VALUE rb_eRegexpError
 RegexpError exception. More...
 
VALUE rb_eEncodingError
 EncodingError exception. More...
 
VALUE rb_eEncCompatError
 Encoding::CompatibilityError exception. More...
 
VALUE rb_eNoMatchingPatternError
 NoMatchingPatternError exception. More...
 
VALUE rb_eNoMatchingPatternKeyError
 NoMatchingPatternKeyError exception. More...
 
VALUE rb_eScriptError
 ScriptError exception. More...
 
VALUE rb_eNameError
 NameError exception. More...
 
VALUE rb_eSyntaxError
 SyntaxError exception. More...
 
VALUE rb_eLoadError
 LoadError exception. More...
 
VALUE rb_eMathDomainError
 Math::DomainError exception. More...
 
VALUE rb_stdin
 STDIN constant. More...
 
VALUE rb_stdout
 STDOUT constant. More...
 
VALUE rb_stderr
 STDERR constant. More...
 

Detailed Description

Ruby-level global variables / constants, visible from C.

Author
Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org
Warning
Symbols prefixed with either RBIMPL or rbimpl are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will.
Note
To ruby-core: remember that this header can be possibly recursively included from extension libraries written in C++. Do not expect for instance __VA_ARGS__ is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98.

Definition in file globals.h.