Ruby  2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
Modules | Macros | Typedefs | Enumerations | Enumerator | Functions | Variables
deprecated macro APIs

Modules

 CRuby Embedding APIs
 CRuby interpreter APIs. These are APIs to embed MRI interpreter into your program. These functions are not a part of Ruby extension library API. Extension libraries of Ruby should not depend on these functions.
 

Macros

#define RUBY_FL_USER_N(n)   RUBY_FL_USER##n = (1<<(RUBY_FL_USHIFT+n))
 
#define RUBY_FL_USER19   (((VALUE)1)<<(RUBY_FL_USHIFT+19))
 
#define RARRAY_TRANSIENT_FLAG   RARRAY_TRANSIENT_FLAG
 
#define FL_ABLE(x)   RB_FL_ABLE(x)
 
#define FL_TEST_RAW(x, f)   RB_FL_TEST_RAW(x,f)
 
#define FL_TEST(x, f)   RB_FL_TEST(x,f)
 
#define FL_ANY_RAW(x, f)   RB_FL_ANY_RAW(x,f)
 
#define FL_ANY(x, f)   RB_FL_ANY(x,f)
 
#define FL_ALL_RAW(x, f)   RB_FL_ALL_RAW(x,f)
 
#define FL_ALL(x, f)   RB_FL_ALL(x,f)
 
#define FL_SET_RAW(x, f)   RB_FL_SET_RAW(x,f)
 
#define FL_SET(x, f)   RB_FL_SET(x,f)
 
#define FL_UNSET_RAW(x, f)   RB_FL_UNSET_RAW(x,f)
 
#define FL_UNSET(x, f)   RB_FL_UNSET(x,f)
 
#define FL_REVERSE_RAW(x, f)   RB_FL_REVERSE_RAW(x,f)
 
#define FL_REVERSE(x, f)   RB_FL_REVERSE(x,f)
 
#define OBJ_TAINTABLE(x)   RB_OBJ_TAINTABLE(x)
 
#define OBJ_TAINTED_RAW(x)   RB_OBJ_TAINTED_RAW(x)
 
#define OBJ_TAINTED(x)   RB_OBJ_TAINTED(x)
 
#define OBJ_TAINT_RAW(x)   RB_OBJ_TAINT_RAW(x)
 
#define OBJ_TAINT(x)   RB_OBJ_TAINT(x)
 
#define OBJ_UNTRUSTED(x)   RB_OBJ_UNTRUSTED(x)
 
#define OBJ_UNTRUST(x)   RB_OBJ_UNTRUST(x)
 
#define OBJ_INFECT_RAW(x, s)   RB_OBJ_INFECT_RAW(x,s)
 
#define OBJ_INFECT(x, s)   RB_OBJ_INFECT(x,s)
 
#define OBJ_FROZEN_RAW(x)   RB_OBJ_FROZEN_RAW(x)
 
#define OBJ_FROZEN(x)   RB_OBJ_FROZEN(x)
 
#define OBJ_FREEZE_RAW(x)   RB_OBJ_FREEZE_RAW(x)
 
#define OBJ_FREEZE(x)   RB_OBJ_FREEZE(x)
 
#define RUBY_UNTYPED_DATA_FUNC(func)   DEPRECATED(func)
 
#define RB_OBJ_PROMOTED_RAW(x)   RB_FL_ALL_RAW(x, RUBY_FL_PROMOTED)
 
#define RB_OBJ_PROMOTED(x)   (RB_SPECIAL_CONST_P(x) ? 0 : RB_OBJ_PROMOTED_RAW(x))
 
#define RB_OBJ_WB_UNPROTECT(x)   rb_obj_wb_unprotect(x, __FILE__, __LINE__)
 
#define OBJ_PROMOTED_RAW(x)   RB_OBJ_PROMOTED_RAW(x)
 
#define OBJ_PROMOTED(x)   RB_OBJ_PROMOTED(x)
 
#define OBJ_WB_UNPROTECT(x)   RB_OBJ_WB_UNPROTECT(x)
 
#define RB_OBJ_WRITE(a, slot, b)   rb_obj_write((VALUE)(a), (VALUE *)(slot), (VALUE)(b), __FILE__, __LINE__)
 
#define RB_OBJ_WRITTEN(a, oldv, b)   rb_obj_written((VALUE)(a), (VALUE)(oldv), (VALUE)(b), __FILE__, __LINE__)
 
#define USE_RGENGC_LOGGING_WB_UNPROTECT   0
 
#define RUBY_INTEGER_UNIFICATION   1
 
#define RB_INTEGER_TYPE_P(obj)   rb_integer_type_p(obj)
 
#define RB_INT2NUM(x)   rb_int2num_inline(x)
 
#define RB_UINT2NUM(x)   rb_uint2num_inline(x)
 
#define INT2NUM(x)   RB_INT2NUM(x)
 
#define UINT2NUM(x)   RB_UINT2NUM(x)
 
#define RB_LONG2NUM(x)   rb_long2num_inline(x)
 
#define RB_ULONG2NUM(x)   rb_ulong2num_inline(x)
 
#define RB_NUM2CHR(x)   rb_num2char_inline(x)
 
#define RB_CHR2FIX(x)   RB_INT2FIX((long)((x)&0xff))
 
#define LONG2NUM(x)   RB_LONG2NUM(x)
 
#define ULONG2NUM(x)   RB_ULONG2NUM(x)
 
#define USHORT2NUM(x)   RB_INT2FIX(x)
 
#define NUM2CHR(x)   RB_NUM2CHR(x)
 
#define CHR2FIX(x)   RB_CHR2FIX(x)
 
#define RB_ST2FIX(h)   RB_LONG2FIX((long)(h))
 
#define ST2FIX(h)   RB_ST2FIX(h)
 
#define RB_ALLOC_N(type, n)   ((type*)ruby_xmalloc2((size_t)(n),sizeof(type)))
 
#define RB_ALLOC(type)   ((type*)ruby_xmalloc(sizeof(type)))
 
#define RB_ZALLOC_N(type, n)   ((type*)ruby_xcalloc((size_t)(n),sizeof(type)))
 
#define RB_ZALLOC(type)   (RB_ZALLOC_N(type,1))
 
#define RB_REALLOC_N(var, type, n)   ((var)=(type*)ruby_xrealloc2((char*)(var),(size_t)(n),sizeof(type)))
 
#define ALLOC_N(type, n)   RB_ALLOC_N(type,n)
 
#define ALLOC(type)   RB_ALLOC(type)
 
#define ZALLOC_N(type, n)   RB_ZALLOC_N(type,n)
 
#define ZALLOC(type)   RB_ZALLOC(type)
 
#define REALLOC_N(var, type, n)   RB_REALLOC_N(var,type,n)
 
#define ALLOCA_N(type, n)   ((type*)alloca(sizeof(type)*(n)))
 
#define RUBY_ALLOCV_LIMIT   1024
 
#define RB_ALLOCV(v, n)
 
#define RB_ALLOCV_N(type, v, n)
 
#define RB_ALLOCV_END(v)   rb_free_tmp_buffer(&(v))
 
#define ALLOCV(v, n)   RB_ALLOCV(v, n)
 
#define ALLOCV_N(type, v, n)   RB_ALLOCV_N(type, v, n)
 
#define ALLOCV_END(v)   RB_ALLOCV_END(v)
 
#define MEMZERO(p, type, n)   memset((p), 0, sizeof(type)*(size_t)(n))
 
#define MEMCPY(p1, p2, type, n)   memcpy((p1), (p2), sizeof(type)*(size_t)(n))
 
#define MEMMOVE(p1, p2, type, n)   memmove((p1), (p2), sizeof(type)*(size_t)(n))
 
#define MEMCMP(p1, p2, type, n)   memcmp((p1), (p2), sizeof(type)*(size_t)(n))
 
#define RUBY_CONST_ID_CACHE(result, str)
 
#define RUBY_CONST_ID(var, str)   do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)
 
#define CONST_ID_CACHE(result, str)   RUBY_CONST_ID_CACHE(result, str)
 
#define CONST_ID(var, str)   RUBY_CONST_ID(var, str)
 
#define rb_intern_const(str)   rb_intern2((str), (long)strlen(str))
 
#define rb_funcall2   rb_funcallv
 
#define rb_funcall3   rb_funcallv_public
 
#define RB_SCAN_ARGS_PASS_CALLED_KEYWORDS   0
 
#define RB_SCAN_ARGS_KEYWORDS   1
 
#define RB_SCAN_ARGS_EMPTY_KEYWORDS   2 /* Will be removed in 3.0 */
 
#define RB_SCAN_ARGS_LAST_HASH_KEYWORDS   3
 
#define HAVE_RB_SCAN_ARGS_OPTIONAL_HASH   1
 
#define ruby_verbose   (*rb_ruby_verbose_ptr())
 
#define ruby_debug   (*rb_ruby_debug_ptr())
 
#define RB_IO_WAIT_READABLE   RB_IO_WAIT_READABLE
 
#define RB_IO_WAIT_WRITABLE   RB_IO_WAIT_WRITABLE
 
#define RB_BLOCK_CALL_FUNC_STRICT   1
 
#define RUBY_BLOCK_CALL_FUNC_TAKES_BLOCKARG   1
 
#define RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg)   VALUE yielded_arg, VALUE callback_arg, int argc, const VALUE *argv, VALUE blockarg
 
#define RB_NO_KEYWORDS   0
 
#define RB_PASS_KEYWORDS   1
 
#define RB_PASS_EMPTY_KEYWORDS   2 /* Will be removed in 3.0 */
 
#define RB_PASS_CALLED_KEYWORDS   3
 
#define rb_type_p(obj, type)   (rb_type(obj) == (type))
 
#define FIX_CONST_VALUE_PTR(x)   (x)
 
#define RUBY_VM   1 /* YARV */
 
#define HAVE_NATIVETHREAD
 
#define RUBY_EVENT_NONE   0x0000
 
#define RUBY_EVENT_LINE   0x0001
 
#define RUBY_EVENT_CLASS   0x0002
 
#define RUBY_EVENT_END   0x0004
 
#define RUBY_EVENT_CALL   0x0008
 
#define RUBY_EVENT_RETURN   0x0010
 
#define RUBY_EVENT_C_CALL   0x0020
 
#define RUBY_EVENT_C_RETURN   0x0040
 
#define RUBY_EVENT_RAISE   0x0080
 
#define RUBY_EVENT_ALL   0x00ff
 
#define RUBY_EVENT_B_CALL   0x0100
 
#define RUBY_EVENT_B_RETURN   0x0200
 
#define RUBY_EVENT_THREAD_BEGIN   0x0400
 
#define RUBY_EVENT_THREAD_END   0x0800
 
#define RUBY_EVENT_FIBER_SWITCH   0x1000
 
#define RUBY_EVENT_SCRIPT_COMPILED   0x2000
 
#define RUBY_EVENT_TRACEPOINT_ALL   0xffff
 
#define RUBY_EVENT_RESERVED_FOR_INTERNAL_USE   0x030000
 
#define RUBY_INTERNAL_EVENT_SWITCH   0x040000
 
#define RUBY_EVENT_SWITCH   0x040000 /* obsolete name. this macro is for compatibility */
 
#define RUBY_INTERNAL_EVENT_NEWOBJ   0x100000
 
#define RUBY_INTERNAL_EVENT_FREEOBJ   0x200000
 
#define RUBY_INTERNAL_EVENT_GC_START   0x400000
 
#define RUBY_INTERNAL_EVENT_GC_END_MARK   0x800000
 
#define RUBY_INTERNAL_EVENT_GC_END_SWEEP   0x1000000
 
#define RUBY_INTERNAL_EVENT_GC_ENTER   0x2000000
 
#define RUBY_INTERNAL_EVENT_GC_EXIT   0x4000000
 
#define RUBY_INTERNAL_EVENT_OBJSPACE_MASK   0x7f00000
 
#define RUBY_INTERNAL_EVENT_MASK   0xffff0000
 
#define RB_EVENT_HOOKS_HAVE_CALLBACK_DATA   1
 
#define ISASCII(c)   rb_isascii(c)
 
#define ISPRINT(c)   rb_isprint(c)
 
#define ISGRAPH(c)   rb_isgraph(c)
 
#define ISSPACE(c)   rb_isspace(c)
 
#define ISUPPER(c)   rb_isupper(c)
 
#define ISLOWER(c)   rb_islower(c)
 
#define ISALNUM(c)   rb_isalnum(c)
 
#define ISALPHA(c)   rb_isalpha(c)
 
#define ISDIGIT(c)   rb_isdigit(c)
 
#define ISXDIGIT(c)   rb_isxdigit(c)
 
#define ISBLANK(c)   rb_isblank(c)
 
#define ISCNTRL(c)   rb_iscntrl(c)
 
#define ISPUNCT(c)   rb_ispunct(c)
 
#define TOUPPER(c)   rb_toupper(c)
 
#define TOLOWER(c)   rb_tolower(c)
 
#define STRCASECMP(s1, s2)   (st_locale_insensitive_strcasecmp((s1), (s2)))
 
#define STRNCASECMP(s1, s2, n)   (st_locale_insensitive_strncasecmp((s1), (s2), (n)))
 
#define STRTOUL(str, endptr, base)   (ruby_strtoul((str), (endptr), (base)))
 
#define InitVM(ext)   {void InitVM_##ext(void);InitVM_##ext();}
 
#define RUBY_METHOD_FUNC(func)   ((VALUE (*)(ANYARGS))(func))
 

Typedefs

typedef int ruby_glob_func(const char *, VALUE, void *)
 
typedef VALUE rb_gvar_getter_t(ID id, VALUE *data)
 
typedef void rb_gvar_setter_t(VALUE val, ID id, VALUE *data)
 
typedef void rb_gvar_marker_t(VALUE *var)
 
typedef VALUE rb_block_call_func(RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg))
 
typedef rb_block_call_funcrb_block_call_func_t
 
typedef uint32_t rb_event_flag_t
 
typedef void(* rb_event_hook_func_t) (rb_event_flag_t evflag, VALUE data, VALUE self, ID mid, VALUE klass)
 

Enumerations

enum  rb_io_wait_readwrite { RB_IO_WAIT_READABLE, RB_IO_WAIT_WRITABLE, RB_IO_WAIT_READABLE, RB_IO_WAIT_WRITABLE }
 

Functions

void rb_freeze_singleton_class (VALUE klass)
 
 DEPRECATED_BY (rb_data_object_wrap, static inline VALUE rb_data_object_alloc(VALUE, void *, RUBY_DATA_FUNC, RUBY_DATA_FUNC))
 
 DEPRECATED_BY (rb_data_typed_object_wrap, static inline VALUE rb_data_typed_object_alloc(VALUE, void *, const rb_data_type_t *))
 
void rb_gc_writebarrier (VALUE a, VALUE b)
 
void rb_gc_writebarrier_unprotect (VALUE obj)
 
voidrb_alloc_tmp_buffer (volatile VALUE *store, long len) RUBY_ATTR_ALLOC_SIZE((2))
 
voidrb_alloc_tmp_buffer_with_count (volatile VALUE *store, size_t len, size_t count) RUBY_ATTR_ALLOC_SIZE((2
 
void void rb_free_tmp_buffer (volatile VALUE *store)
 
 NORETURN (void ruby_malloc_size_overflow(size_t, size_t))
 
void rb_obj_infect (VALUE victim, VALUE carrier)
 Does nothing. More...
 
void rb_glob (const char *, void(*)(const char *, VALUE, void *), VALUE)
 
int ruby_glob (const char *, int, ruby_glob_func *, VALUE)
 
int ruby_brace_glob (const char *, int, ruby_glob_func *, VALUE)
 
VALUE rb_define_class (const char *, VALUE)
 Defines a top-level class. More...
 
VALUE rb_define_module (const char *)
 
VALUE rb_define_class_under (VALUE, const char *, VALUE)
 Defines a class under the namespace of outer. More...
 
VALUE rb_define_module_under (VALUE, const char *)
 
void rb_include_module (VALUE, VALUE)
 
void rb_extend_object (VALUE, VALUE)
 Extend the object with the module. More...
 
void rb_prepend_module (VALUE, VALUE)
 
 NORETURN (rb_gvar_setter_t rb_gvar_readonly_setter)
 
void rb_define_variable (const char *, VALUE *)
 
void rb_define_virtual_variable (const char *, rb_gvar_getter_t *, rb_gvar_setter_t *)
 Define a function-backended global variable. More...
 
void rb_define_hooked_variable (const char *, VALUE *, rb_gvar_getter_t *, rb_gvar_setter_t *)
 Define a function-backended global variable. More...
 
void rb_define_readonly_variable (const char *, const VALUE *)
 
void rb_define_const (VALUE, const char *, VALUE)
 
void rb_define_global_const (const char *, VALUE)
 
void rb_define_method (VALUE, const char *, VALUE(*)(ANYARGS), int)
 
void rb_define_module_function (VALUE, const char *, VALUE(*)(ANYARGS), int)
 Defines a module function for module. More...
 
void rb_define_global_function (const char *, VALUE(*)(ANYARGS), int)
 Defines a global function. More...
 
void rb_undef_method (VALUE, const char *)
 
void rb_define_alias (VALUE, const char *, const char *)
 Defines an alias of a method. More...
 
void rb_define_attr (VALUE, const char *, int, int)
 Defines (a) public accessor method(s) for an attribute. More...
 
void rb_global_variable (VALUE *)
 
void rb_gc_register_mark_object (VALUE)
 
void rb_gc_register_address (VALUE *)
 
void rb_gc_unregister_address (VALUE *)
 
ID rb_intern (const char *)
 
ID rb_intern2 (const char *, long)
 
ID rb_intern_str (VALUE str)
 
const charrb_id2name (ID)
 
ID rb_check_id (volatile VALUE *)
 Returns ID for the given name if it is interned already, or 0. More...
 
ID rb_to_id (VALUE)
 
VALUE rb_id2str (ID)
 
VALUE rb_sym2str (VALUE)
 
VALUE rb_to_symbol (VALUE name)
 
VALUE rb_check_symbol (volatile VALUE *namep)
 
const charrb_class2name (VALUE)
 
const charrb_obj_classname (VALUE)
 
void rb_p (VALUE)
 
VALUE rb_eval_string (const char *)
 Evaluates the given string in an isolated binding. More...
 
VALUE rb_eval_string_protect (const char *, int *)
 Evaluates the given string in an isolated binding. More...
 
VALUE rb_eval_string_wrap (const char *, int *)
 Evaluates the given string under a module binding in an isolated binding. More...
 
VALUE rb_funcall (VALUE, ID, int,...)
 Calls a method. More...
 
VALUE rb_funcallv (VALUE, ID, int, const VALUE *)
 Calls a method. More...
 
VALUE rb_funcallv_kw (VALUE, ID, int, const VALUE *, int)
 
VALUE rb_funcallv_public (VALUE, ID, int, const VALUE *)
 Calls a method. More...
 
VALUE rb_funcallv_public_kw (VALUE, ID, int, const VALUE *, int)
 
VALUE rb_funcall_passing_block (VALUE, ID, int, const VALUE *)
 
VALUE rb_funcall_passing_block_kw (VALUE, ID, int, const VALUE *, int)
 
VALUE rb_funcall_with_block (VALUE, ID, int, const VALUE *, VALUE)
 
VALUE rb_funcall_with_block_kw (VALUE, ID, int, const VALUE *, VALUE, int)
 
int rb_scan_args (int, const VALUE *, const char *,...)
 
int rb_scan_args_kw (int, int, const VALUE *, const char *,...)
 
VALUE rb_call_super (int, const VALUE *)
 
VALUE rb_call_super_kw (int, const VALUE *, int)
 
VALUE rb_current_receiver (void)
 
int rb_get_kwargs (VALUE keyword_hash, const ID *table, int required, int optional, VALUE *)
 
VALUE rb_extract_keywords (VALUE *orighash)
 
VALUE rb_gv_set (const char *, VALUE)
 
VALUE rb_gv_get (const char *)
 
VALUE rb_iv_get (VALUE, const char *)
 
VALUE rb_iv_set (VALUE, const char *, VALUE)
 
VALUE rb_equal (VALUE, VALUE)
 Same as Object#===, case equality. More...
 
VALUErb_ruby_verbose_ptr (void)
 
VALUErb_ruby_debug_ptr (void)
 
 PRINTF_ARGS (NORETURN(void rb_raise(VALUE, const char *,...)), 2, 3)
 
 PRINTF_ARGS (NORETURN(void rb_fatal(const char *,...)), 1, 2)
 
COLDFUNC PRINTF_ARGS (NORETURN(void rb_bug(const char *,...)), 1, 2)
 
 NORETURN (void rb_bug_errno(const char *, int))
 
 NORETURN (void rb_sys_fail(const char *))
 
 NORETURN (void rb_sys_fail_str(VALUE))
 
 NORETURN (void rb_mod_sys_fail(VALUE, const char *))
 
 NORETURN (void rb_mod_sys_fail_str(VALUE, VALUE))
 
 NORETURN (void rb_readwrite_sys_fail(enum rb_io_wait_readwrite, const char *))
 
 NORETURN (void rb_insecure_operation(void))
 
 NORETURN (void rb_exit(int))
 
VALUE rb_syserr_new (int, const char *)
 
VALUE rb_syserr_new_str (int n, VALUE arg)
 
 NORETURN (void rb_syserr_fail(int, const char *))
 
 NORETURN (void rb_syserr_fail_str(int, VALUE))
 
 NORETURN (void rb_mod_syserr_fail(VALUE, int, const char *))
 
 NORETURN (void rb_mod_syserr_fail_str(VALUE, int, VALUE))
 
 NORETURN (void rb_readwrite_syserr_fail(enum rb_io_wait_readwrite, int, const char *))
 
 PRINTF_ARGS (void rb_warning(const char *,...), 1, 2)
 
 PRINTF_ARGS (void rb_compile_warning(const char *, int, const char *,...), 3, 4)
 
VALUE rb_each (VALUE)
 
VALUE rb_yield (VALUE)
 
VALUE rb_yield_values (int n,...)
 
VALUE rb_yield_values2 (int n, const VALUE *argv)
 
VALUE rb_yield_values_kw (int n, const VALUE *argv, int kw_splat)
 
VALUE rb_yield_splat (VALUE)
 
VALUE rb_yield_splat_kw (VALUE, int)
 
VALUE rb_yield_block (RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg))
 
int rb_keyword_given_p (void)
 
int rb_block_given_p (void)
 Determines if the current method is given a block. More...
 
void rb_need_block (void)
 Declares that the current method needs a block. More...
 
VALUE rb_iterate (VALUE(*)(VALUE), VALUE, rb_block_call_func_t, VALUE)
 
VALUE rb_block_call (VALUE, ID, int, const VALUE *, rb_block_call_func_t, VALUE)
 
VALUE rb_block_call_kw (VALUE, ID, int, const VALUE *, rb_block_call_func_t, VALUE, int)
 
VALUE rb_rescue (VALUE(*)(VALUE), VALUE, VALUE(*)(VALUE, VALUE), VALUE)
 An equivalent of rescue clause. More...
 
VALUE rb_rescue2 (VALUE(*)(VALUE), VALUE, VALUE(*)(VALUE, VALUE), VALUE,...)
 An equivalent of rescue clause. More...
 
VALUE rb_vrescue2 (VALUE(*)(VALUE), VALUE, VALUE(*)(VALUE, VALUE), VALUE, va_list)
 An equivalent of rescue clause. More...
 
VALUE rb_ensure (VALUE(*)(VALUE), VALUE, VALUE(*)(VALUE), VALUE)
 An equivalent to ensure clause. More...
 
VALUE rb_catch (const char *, rb_block_call_func_t, VALUE)
 
VALUE rb_catch_obj (VALUE, rb_block_call_func_t, VALUE)
 
 NORETURN (void rb_throw(const char *, VALUE))
 
VALUE rb_require (const char *)
 
int ruby_native_thread_p (void)
 
void rb_add_event_hook (rb_event_hook_func_t func, rb_event_flag_t events, VALUE data)
 
int rb_remove_event_hook (rb_event_hook_func_t func)
 
int st_locale_insensitive_strcasecmp (const char *s1, const char *s2)
 
int st_locale_insensitive_strncasecmp (const char *s1, const char *s2, size_t n)
 
unsigned long ruby_strtoul (const char *str, char **endptr, int base)
 
 PRINTF_ARGS (int ruby_snprintf(char *str, size_t n, char const *fmt,...), 3, 4)
 
int ruby_vsnprintf (char *str, size_t n, char const *fmt, va_list ap)
 
int rb_empty_keyword_given_p (void)
 

Variables

struct RBasic RObject::basic
 
uint32_t   RObject::numiv
 
VALUE *   RObject::ivptr
 
void *   RObject::iv_index_tbl
 
struct {
   uint32_t   RObject::numiv
 
   VALUE *   RObject::ivptr
 
   void *   RObject::iv_index_tbl
 
}   RObject::heap
 
VALUE   RObject::ary [ROBJECT_EMBED_LEN_MAX]
 
union {
   struct {
      uint32_t   RObject::numiv
 
      VALUE *   RObject::ivptr
 
      void *   RObject::iv_index_tbl
 
   }   RObject::heap
 
   VALUE   RObject::ary [ROBJECT_EMBED_LEN_MAX]
 
RObject::as
 
struct RBasic RString::basic
 
long   RString::len
 
char *   RString::ptr
 
long   RString::capa
 
VALUE   RString::shared
 
union {
   long   RString::capa
 
   VALUE   RString::shared
 
}   RString::aux
 
struct {
   long   RString::len
 
   char *   RString::ptr
 
   union {
      long   RString::capa
 
      VALUE   RString::shared
 
   }   RString::aux
 
}   RString::heap
 
char   RString::ary [RSTRING_EMBED_LEN_MAX+1]
 
union {
   struct {
      long   RString::len
 
      char *   RString::ptr
 
      union {
         long   RString::capa
 
         VALUE   RString::shared
 
      }   RString::aux
 
   }   RString::heap
 
   char   RString::ary [RSTRING_EMBED_LEN_MAX+1]
 
RString::as
 
struct RBasic RArray::basic
 
long   RArray::len
 
long   RArray::capa
 
const VALUE   RArray::shared_root
 
union {
   long   RArray::capa
 
   const VALUE   RArray::shared_root
 
}   RArray::aux
 
const VALUE *   RArray::ptr
 
struct {
   long   RArray::len
 
   union {
      long   RArray::capa
 
      const VALUE   RArray::shared_root
 
   }   RArray::aux
 
   const VALUE *   RArray::ptr
 
}   RArray::heap
 
const VALUE   RArray::ary [RARRAY_EMBED_LEN_MAX]
 
union {
   struct {
      long   RArray::len
 
      union {
         long   RArray::capa
 
         const VALUE   RArray::shared_root
 
      }   RArray::aux
 
      const VALUE *   RArray::ptr
 
   }   RArray::heap
 
   const VALUE   RArray::ary [RARRAY_EMBED_LEN_MAX]
 
RArray::as
 
struct RBasic RRegexp::basic
 
struct re_pattern_bufferRRegexp::ptr
 
const VALUE RRegexp::src
 
unsigned long RRegexp::usecnt
 
struct RBasic RFile::basic
 
struct rb_io_tRFile::fptr
 
struct RBasic RData::basic
 
void(* RData::dmark )(void *)
 
void(* RData::dfree )(void *)
 
voidRData::data
 
const charrb_data_type_struct::wrap_struct_name
 
void(*   rb_data_type_struct::dmark )(void *)
 
void(*   rb_data_type_struct::dfree )(void *)
 
size_t(*   rb_data_type_struct::dsize )(const void *)
 
void(*   rb_data_type_struct::dcompact )(void *)
 
void *   rb_data_type_struct::reserved [1]
 
struct {
   void(*   rb_data_type_struct::dmark )(void *)
 
   void(*   rb_data_type_struct::dfree )(void *)
 
   size_t(*   rb_data_type_struct::dsize )(const void *)
 
   void(*   rb_data_type_struct::dcompact )(void *)
 
   void *   rb_data_type_struct::reserved [1]
 
rb_data_type_struct::function
 
const rb_data_type_trb_data_type_struct::parent
 
voidrb_data_type_struct::data
 
VALUE rb_data_type_struct::flags
 
struct RBasic RTypedData::basic
 
const rb_data_type_tRTypedData::type
 
VALUE RTypedData::typed_flag
 
voidRTypedData::data
 
rb_gvar_getter_t rb_gvar_undef_getter
 
rb_gvar_setter_t rb_gvar_undef_setter
 
rb_gvar_marker_t rb_gvar_undef_marker
 
rb_gvar_getter_t rb_gvar_val_getter
 
rb_gvar_setter_t rb_gvar_val_setter
 
rb_gvar_marker_t rb_gvar_val_marker
 
rb_gvar_getter_t rb_gvar_var_getter
 
rb_gvar_setter_t rb_gvar_var_setter
 
rb_gvar_marker_t rb_gvar_var_marker
 
RUBY_EXTERN VALUE rb_mKernel
 
RUBY_EXTERN VALUE rb_mComparable
 
RUBY_EXTERN VALUE rb_mEnumerable
 
RUBY_EXTERN VALUE rb_mErrno
 
RUBY_EXTERN VALUE rb_mFileTest
 
RUBY_EXTERN VALUE rb_mGC
 
RUBY_EXTERN VALUE rb_mMath
 
RUBY_EXTERN VALUE rb_mProcess
 
RUBY_EXTERN VALUE rb_mWaitReadable
 
RUBY_EXTERN VALUE rb_mWaitWritable
 
RUBY_EXTERN VALUE rb_cBasicObject
 
RUBY_EXTERN VALUE rb_cObject
 
RUBY_EXTERN VALUE rb_cArray
 
RUBY_EXTERN VALUE rb_cBinding
 
RUBY_EXTERN VALUE rb_cClass
 
RUBY_EXTERN VALUE rb_cCont
 
RUBY_EXTERN VALUE rb_cData
 
RUBY_EXTERN VALUE rb_cDir
 
RUBY_EXTERN VALUE rb_cEncoding
 
RUBY_EXTERN VALUE rb_cEnumerator
 
RUBY_EXTERN VALUE rb_cFalseClass
 
RUBY_EXTERN VALUE rb_cFile
 
RUBY_EXTERN VALUE rb_cComplex
 
RUBY_EXTERN VALUE rb_cFloat
 
RUBY_EXTERN VALUE rb_cHash
 
RUBY_EXTERN VALUE rb_cIO
 
RUBY_EXTERN VALUE rb_cInteger
 
RUBY_EXTERN VALUE rb_cMatch
 
RUBY_EXTERN VALUE rb_cMethod
 
RUBY_EXTERN VALUE rb_cModule
 
RUBY_EXTERN VALUE rb_cNameErrorMesg
 
RUBY_EXTERN VALUE rb_cNilClass
 
RUBY_EXTERN VALUE rb_cNumeric
 
RUBY_EXTERN VALUE rb_cProc
 
RUBY_EXTERN VALUE rb_cRandom
 
RUBY_EXTERN VALUE rb_cRange
 
RUBY_EXTERN VALUE rb_cRational
 
RUBY_EXTERN VALUE rb_cRegexp
 
RUBY_EXTERN VALUE rb_cStat
 
RUBY_EXTERN VALUE rb_cString
 
RUBY_EXTERN VALUE rb_cStruct
 
RUBY_EXTERN VALUE rb_cSymbol
 
RUBY_EXTERN VALUE rb_cThread
 
RUBY_EXTERN VALUE rb_cTime
 
RUBY_EXTERN VALUE rb_cTrueClass
 
RUBY_EXTERN VALUE rb_cUnboundMethod
 
RUBY_EXTERN VALUE rb_eException
 
RUBY_EXTERN VALUE rb_eStandardError
 
RUBY_EXTERN VALUE rb_eSystemExit
 
RUBY_EXTERN VALUE rb_eInterrupt
 
RUBY_EXTERN VALUE rb_eSignal
 
RUBY_EXTERN VALUE rb_eFatal
 
RUBY_EXTERN VALUE rb_eArgError
 
RUBY_EXTERN VALUE rb_eEOFError
 
RUBY_EXTERN VALUE rb_eIndexError
 
RUBY_EXTERN VALUE rb_eStopIteration
 
RUBY_EXTERN VALUE rb_eKeyError
 
RUBY_EXTERN VALUE rb_eRangeError
 
RUBY_EXTERN VALUE rb_eIOError
 
RUBY_EXTERN VALUE rb_eRuntimeError
 
RUBY_EXTERN VALUE rb_eFrozenError
 
RUBY_EXTERN VALUE rb_eSecurityError
 
RUBY_EXTERN VALUE rb_eSystemCallError
 
RUBY_EXTERN VALUE rb_eThreadError
 
RUBY_EXTERN VALUE rb_eTypeError
 
RUBY_EXTERN VALUE rb_eZeroDivError
 
RUBY_EXTERN VALUE rb_eNotImpError
 
RUBY_EXTERN VALUE rb_eNoMemError
 
RUBY_EXTERN VALUE rb_eNoMethodError
 
RUBY_EXTERN VALUE rb_eFloatDomainError
 
RUBY_EXTERN VALUE rb_eLocalJumpError
 
RUBY_EXTERN VALUE rb_eSysStackError
 
RUBY_EXTERN VALUE rb_eRegexpError
 
RUBY_EXTERN VALUE rb_eEncodingError
 
RUBY_EXTERN VALUE rb_eEncCompatError
 
RUBY_EXTERN VALUE rb_eNoMatchingPatternError
 
RUBY_EXTERN VALUE rb_eScriptError
 
RUBY_EXTERN VALUE rb_eNameError
 
RUBY_EXTERN VALUE rb_eSyntaxError
 
RUBY_EXTERN VALUE rb_eLoadError
 
RUBY_EXTERN VALUE rb_eMathDomainError
 
RUBY_EXTERN VALUE rb_stdin
 
RUBY_EXTERN VALUE rb_stdout
 
RUBY_EXTERN VALUE rb_stderr
 

Hooking global variables

void ruby::backward::cxxanyargs::rb_define_hooked_variable (const char *q, VALUE *w, type *e, void_type *r)
 Define a function-backended global variable. More...
 

Detailed Description

These macros are deprecated. Prefer their RB_-prefixed versions.

Macro Definition Documentation

◆ ALLOC

#define ALLOC (   type)    RB_ALLOC(type)

Definition at line 1664 of file ruby.h.

◆ ALLOC_N

#define ALLOC_N (   type,
  n 
)    RB_ALLOC_N(type,n)

Definition at line 1663 of file ruby.h.

◆ ALLOCA_N

#define ALLOCA_N (   type,
  n 
)    ((type*)alloca(sizeof(type)*(n)))

Definition at line 1684 of file ruby.h.

◆ ALLOCV

#define ALLOCV (   v,
  n 
)    RB_ALLOCV(v, n)

Definition at line 1748 of file ruby.h.

◆ ALLOCV_END

#define ALLOCV_END (   v)    RB_ALLOCV_END(v)

Definition at line 1750 of file ruby.h.

◆ ALLOCV_N

#define ALLOCV_N (   type,
  v,
  n 
)    RB_ALLOCV_N(type, v, n)

Definition at line 1749 of file ruby.h.

◆ CHR2FIX

#define CHR2FIX (   x)    RB_CHR2FIX(x)

Definition at line 1648 of file ruby.h.

◆ CONST_ID

#define CONST_ID (   var,
  str 
)    RUBY_CONST_ID(var, str)

Definition at line 1841 of file ruby.h.

◆ CONST_ID_CACHE

#define CONST_ID_CACHE (   result,
  str 
)    RUBY_CONST_ID_CACHE(result, str)

Definition at line 1840 of file ruby.h.

◆ FIX_CONST_VALUE_PTR

#define FIX_CONST_VALUE_PTR (   x)    (x)

Definition at line 2178 of file ruby.h.

◆ FL_ABLE

#define FL_ABLE (   x)    RB_FL_ABLE(x)

Definition at line 1351 of file ruby.h.

◆ FL_ALL

#define FL_ALL (   x,
  f 
)    RB_FL_ALL(x,f)

Definition at line 1357 of file ruby.h.

◆ FL_ALL_RAW

#define FL_ALL_RAW (   x,
  f 
)    RB_FL_ALL_RAW(x,f)

Definition at line 1356 of file ruby.h.

◆ FL_ANY

#define FL_ANY (   x,
  f 
)    RB_FL_ANY(x,f)

Definition at line 1355 of file ruby.h.

◆ FL_ANY_RAW

#define FL_ANY_RAW (   x,
  f 
)    RB_FL_ANY_RAW(x,f)

Definition at line 1354 of file ruby.h.

◆ FL_REVERSE

#define FL_REVERSE (   x,
  f 
)    RB_FL_REVERSE(x,f)

Definition at line 1363 of file ruby.h.

◆ FL_REVERSE_RAW

#define FL_REVERSE_RAW (   x,
  f 
)    RB_FL_REVERSE_RAW(x,f)

Definition at line 1362 of file ruby.h.

◆ FL_SET

#define FL_SET (   x,
  f 
)    RB_FL_SET(x,f)

Definition at line 1359 of file ruby.h.

◆ FL_SET_RAW

#define FL_SET_RAW (   x,
  f 
)    RB_FL_SET_RAW(x,f)

Definition at line 1358 of file ruby.h.

◆ FL_TEST

#define FL_TEST (   x,
  f 
)    RB_FL_TEST(x,f)

Definition at line 1353 of file ruby.h.

◆ FL_TEST_RAW

#define FL_TEST_RAW (   x,
  f 
)    RB_FL_TEST_RAW(x,f)

Definition at line 1352 of file ruby.h.

◆ FL_UNSET

#define FL_UNSET (   x,
  f 
)    RB_FL_UNSET(x,f)

Definition at line 1361 of file ruby.h.

◆ FL_UNSET_RAW

#define FL_UNSET_RAW (   x,
  f 
)    RB_FL_UNSET_RAW(x,f)

Definition at line 1360 of file ruby.h.

◆ HAVE_NATIVETHREAD

#define HAVE_NATIVETHREAD

Definition at line 2237 of file ruby.h.

◆ HAVE_RB_SCAN_ARGS_OPTIONAL_HASH

#define HAVE_RB_SCAN_ARGS_OPTIONAL_HASH   1

Definition at line 1914 of file ruby.h.

◆ InitVM

#define InitVM (   ext)    {void InitVM_##ext(void);InitVM_##ext();}

Definition at line 2329 of file ruby.h.

◆ INT2NUM

#define INT2NUM (   x)    RB_INT2NUM(x)

Definition at line 1609 of file ruby.h.

◆ ISALNUM

#define ISALNUM (   c)    rb_isalnum(c)

Definition at line 2310 of file ruby.h.

◆ ISALPHA

#define ISALPHA (   c)    rb_isalpha(c)

Definition at line 2311 of file ruby.h.

◆ ISASCII

#define ISASCII (   c)    rb_isascii(c)

Definition at line 2304 of file ruby.h.

◆ ISBLANK

#define ISBLANK (   c)    rb_isblank(c)

Definition at line 2314 of file ruby.h.

◆ ISCNTRL

#define ISCNTRL (   c)    rb_iscntrl(c)

Definition at line 2315 of file ruby.h.

◆ ISDIGIT

#define ISDIGIT (   c)    rb_isdigit(c)

Definition at line 2312 of file ruby.h.

◆ ISGRAPH

#define ISGRAPH (   c)    rb_isgraph(c)

Definition at line 2306 of file ruby.h.

◆ ISLOWER

#define ISLOWER (   c)    rb_islower(c)

Definition at line 2309 of file ruby.h.

◆ ISPRINT

#define ISPRINT (   c)    rb_isprint(c)

Definition at line 2305 of file ruby.h.

◆ ISPUNCT

#define ISPUNCT (   c)    rb_ispunct(c)

Definition at line 2316 of file ruby.h.

◆ ISSPACE

#define ISSPACE (   c)    rb_isspace(c)

Definition at line 2307 of file ruby.h.

◆ ISUPPER

#define ISUPPER (   c)    rb_isupper(c)

Definition at line 2308 of file ruby.h.

◆ ISXDIGIT

#define ISXDIGIT (   c)    rb_isxdigit(c)

Definition at line 2313 of file ruby.h.

◆ LONG2NUM

#define LONG2NUM (   x)    RB_LONG2NUM(x)

Definition at line 1644 of file ruby.h.

◆ MEMCMP

#define MEMCMP (   p1,
  p2,
  type,
  n 
)    memcmp((p1), (p2), sizeof(type)*(size_t)(n))

Definition at line 1755 of file ruby.h.

◆ MEMCPY

#define MEMCPY (   p1,
  p2,
  type,
  n 
)    memcpy((p1), (p2), sizeof(type)*(size_t)(n))

Definition at line 1753 of file ruby.h.

◆ MEMMOVE

#define MEMMOVE (   p1,
  p2,
  type,
  n 
)    memmove((p1), (p2), sizeof(type)*(size_t)(n))

Definition at line 1754 of file ruby.h.

◆ MEMZERO

#define MEMZERO (   p,
  type,
  n 
)    memset((p), 0, sizeof(type)*(size_t)(n))

Definition at line 1752 of file ruby.h.

◆ NUM2CHR

#define NUM2CHR (   x)    RB_NUM2CHR(x)

Definition at line 1647 of file ruby.h.

◆ OBJ_FREEZE

#define OBJ_FREEZE (   x)    RB_OBJ_FREEZE(x)

Definition at line 1377 of file ruby.h.

◆ OBJ_FREEZE_RAW

#define OBJ_FREEZE_RAW (   x)    RB_OBJ_FREEZE_RAW(x)

Definition at line 1376 of file ruby.h.

◆ OBJ_FROZEN

#define OBJ_FROZEN (   x)    RB_OBJ_FROZEN(x)

Definition at line 1375 of file ruby.h.

◆ OBJ_FROZEN_RAW

#define OBJ_FROZEN_RAW (   x)    RB_OBJ_FROZEN_RAW(x)

Definition at line 1374 of file ruby.h.

◆ OBJ_INFECT

#define OBJ_INFECT (   x,
 
)    RB_OBJ_INFECT(x,s)

Definition at line 1373 of file ruby.h.

◆ OBJ_INFECT_RAW

#define OBJ_INFECT_RAW (   x,
 
)    RB_OBJ_INFECT_RAW(x,s)

Definition at line 1372 of file ruby.h.

◆ OBJ_PROMOTED

#define OBJ_PROMOTED (   x)    RB_OBJ_PROMOTED(x)

Definition at line 1494 of file ruby.h.

◆ OBJ_PROMOTED_RAW

#define OBJ_PROMOTED_RAW (   x)    RB_OBJ_PROMOTED_RAW(x)

Definition at line 1493 of file ruby.h.

◆ OBJ_TAINT

#define OBJ_TAINT (   x)    RB_OBJ_TAINT(x)

Definition at line 1369 of file ruby.h.

◆ OBJ_TAINT_RAW

#define OBJ_TAINT_RAW (   x)    RB_OBJ_TAINT_RAW(x)

Definition at line 1368 of file ruby.h.

◆ OBJ_TAINTABLE

#define OBJ_TAINTABLE (   x)    RB_OBJ_TAINTABLE(x)

Definition at line 1365 of file ruby.h.

◆ OBJ_TAINTED

#define OBJ_TAINTED (   x)    RB_OBJ_TAINTED(x)

Definition at line 1367 of file ruby.h.

◆ OBJ_TAINTED_RAW

#define OBJ_TAINTED_RAW (   x)    RB_OBJ_TAINTED_RAW(x)

Definition at line 1366 of file ruby.h.

◆ OBJ_UNTRUST

#define OBJ_UNTRUST (   x)    RB_OBJ_UNTRUST(x)

Definition at line 1371 of file ruby.h.

◆ OBJ_UNTRUSTED

#define OBJ_UNTRUSTED (   x)    RB_OBJ_UNTRUSTED(x)

Definition at line 1370 of file ruby.h.

◆ OBJ_WB_UNPROTECT

#define OBJ_WB_UNPROTECT (   x)    RB_OBJ_WB_UNPROTECT(x)

Definition at line 1495 of file ruby.h.

◆ RARRAY_TRANSIENT_FLAG

#define RARRAY_TRANSIENT_FLAG   RARRAY_TRANSIENT_FLAG

Definition at line 1036 of file ruby.h.

◆ RB_ALLOC

#define RB_ALLOC (   type)    ((type*)ruby_xmalloc(sizeof(type)))

Definition at line 1658 of file ruby.h.

◆ RB_ALLOC_N

#define RB_ALLOC_N (   type,
  n 
)    ((type*)ruby_xmalloc2((size_t)(n),sizeof(type)))

Definition at line 1657 of file ruby.h.

◆ RB_ALLOCV

#define RB_ALLOCV (   v,
  n 
)
Value:
((v) = 0, alloca(n)) : \

Definition at line 1738 of file ruby.h.

◆ RB_ALLOCV_END

#define RB_ALLOCV_END (   v)    rb_free_tmp_buffer(&(v))

Definition at line 1746 of file ruby.h.

◆ RB_ALLOCV_N

#define RB_ALLOCV_N (   type,
  v,
  n 
)
Value:
((type*)(((size_t)(n) < RUBY_ALLOCV_LIMIT / sizeof(type)) ? \
((v) = 0, alloca((size_t)(n) * sizeof(type))) : \
rb_alloc_tmp_buffer2(&(v), (long)(n), sizeof(type))))

Definition at line 1741 of file ruby.h.

◆ RB_BLOCK_CALL_FUNC_ARGLIST

#define RB_BLOCK_CALL_FUNC_ARGLIST (   yielded_arg,
  callback_arg 
)    VALUE yielded_arg, VALUE callback_arg, int argc, const VALUE *argv, VALUE blockarg

Definition at line 1964 of file ruby.h.

◆ RB_BLOCK_CALL_FUNC_STRICT

#define RB_BLOCK_CALL_FUNC_STRICT   1

Definition at line 1962 of file ruby.h.

◆ RB_CHR2FIX

#define RB_CHR2FIX (   x)    RB_INT2FIX((long)((x)&0xff))

Definition at line 1642 of file ruby.h.

◆ RB_EVENT_HOOKS_HAVE_CALLBACK_DATA

#define RB_EVENT_HOOKS_HAVE_CALLBACK_DATA   1

Definition at line 2281 of file ruby.h.

◆ rb_funcall2

#define rb_funcall2   rb_funcallv

Definition at line 1895 of file ruby.h.

◆ rb_funcall3

#define rb_funcall3   rb_funcallv_public

Definition at line 1896 of file ruby.h.

◆ RB_INT2NUM

#define RB_INT2NUM (   x)    rb_int2num_inline(x)

Definition at line 1597 of file ruby.h.

◆ RB_INTEGER_TYPE_P

#define RB_INTEGER_TYPE_P (   obj)    rb_integer_type_p(obj)

Definition at line 1564 of file ruby.h.

◆ rb_intern_const

#define rb_intern_const (   str)    rb_intern2((str), (long)strlen(str))

Definition at line 1879 of file ruby.h.

◆ RB_IO_WAIT_READABLE

#define RB_IO_WAIT_READABLE   RB_IO_WAIT_READABLE

Definition at line 1930 of file ruby.h.

◆ RB_IO_WAIT_WRITABLE

#define RB_IO_WAIT_WRITABLE   RB_IO_WAIT_WRITABLE

Definition at line 1931 of file ruby.h.

◆ RB_LONG2NUM

#define RB_LONG2NUM (   x)    rb_long2num_inline(x)

Definition at line 1620 of file ruby.h.

◆ RB_NO_KEYWORDS

#define RB_NO_KEYWORDS   0

Definition at line 1977 of file ruby.h.

◆ RB_NUM2CHR

#define RB_NUM2CHR (   x)    rb_num2char_inline(x)

Definition at line 1640 of file ruby.h.

◆ RB_OBJ_PROMOTED

#define RB_OBJ_PROMOTED (   x)    (RB_SPECIAL_CONST_P(x) ? 0 : RB_OBJ_PROMOTED_RAW(x))

Definition at line 1483 of file ruby.h.

◆ RB_OBJ_PROMOTED_RAW

#define RB_OBJ_PROMOTED_RAW (   x)    RB_FL_ALL_RAW(x, RUBY_FL_PROMOTED)

Definition at line 1482 of file ruby.h.

◆ RB_OBJ_WB_UNPROTECT

#define RB_OBJ_WB_UNPROTECT (   x)    rb_obj_wb_unprotect(x, __FILE__, __LINE__)

Definition at line 1484 of file ruby.h.

◆ RB_OBJ_WRITE

#define RB_OBJ_WRITE (   a,
  slot,
 
)    rb_obj_write((VALUE)(a), (VALUE *)(slot), (VALUE)(b), __FILE__, __LINE__)

Definition at line 1508 of file ruby.h.

◆ RB_OBJ_WRITTEN

#define RB_OBJ_WRITTEN (   a,
  oldv,
 
)    rb_obj_written((VALUE)(a), (VALUE)(oldv), (VALUE)(b), __FILE__, __LINE__)

Definition at line 1509 of file ruby.h.

◆ RB_PASS_CALLED_KEYWORDS

#define RB_PASS_CALLED_KEYWORDS   3

Definition at line 1980 of file ruby.h.

◆ RB_PASS_EMPTY_KEYWORDS

#define RB_PASS_EMPTY_KEYWORDS   2 /* Will be removed in 3.0 */

Definition at line 1979 of file ruby.h.

◆ RB_PASS_KEYWORDS

#define RB_PASS_KEYWORDS   1

Definition at line 1978 of file ruby.h.

◆ RB_REALLOC_N

#define RB_REALLOC_N (   var,
  type,
  n 
)    ((var)=(type*)ruby_xrealloc2((char*)(var),(size_t)(n),sizeof(type)))

Definition at line 1661 of file ruby.h.

◆ RB_SCAN_ARGS_EMPTY_KEYWORDS

#define RB_SCAN_ARGS_EMPTY_KEYWORDS   2 /* Will be removed in 3.0 */

Definition at line 1904 of file ruby.h.

◆ RB_SCAN_ARGS_KEYWORDS

#define RB_SCAN_ARGS_KEYWORDS   1

Definition at line 1903 of file ruby.h.

◆ RB_SCAN_ARGS_LAST_HASH_KEYWORDS

#define RB_SCAN_ARGS_LAST_HASH_KEYWORDS   3

Definition at line 1905 of file ruby.h.

◆ RB_SCAN_ARGS_PASS_CALLED_KEYWORDS

#define RB_SCAN_ARGS_PASS_CALLED_KEYWORDS   0

Definition at line 1902 of file ruby.h.

◆ RB_ST2FIX

#define RB_ST2FIX (   h)    RB_LONG2FIX((long)(h))

Definition at line 1653 of file ruby.h.

◆ rb_type_p

#define rb_type_p (   obj,
  type 
)    (rb_type(obj) == (type))

Definition at line 2130 of file ruby.h.

◆ RB_UINT2NUM

#define RB_UINT2NUM (   x)    rb_uint2num_inline(x)

Definition at line 1607 of file ruby.h.

◆ RB_ULONG2NUM

#define RB_ULONG2NUM (   x)    rb_ulong2num_inline(x)

Definition at line 1630 of file ruby.h.

◆ RB_ZALLOC

#define RB_ZALLOC (   type)    (RB_ZALLOC_N(type,1))

Definition at line 1660 of file ruby.h.

◆ RB_ZALLOC_N

#define RB_ZALLOC_N (   type,
  n 
)    ((type*)ruby_xcalloc((size_t)(n),sizeof(type)))

Definition at line 1659 of file ruby.h.

◆ REALLOC_N

#define REALLOC_N (   var,
  type,
  n 
)    RB_REALLOC_N(var,type,n)

Definition at line 1667 of file ruby.h.

◆ RUBY_ALLOCV_LIMIT

#define RUBY_ALLOCV_LIMIT   1024

Definition at line 1737 of file ruby.h.

◆ RUBY_BLOCK_CALL_FUNC_TAKES_BLOCKARG

#define RUBY_BLOCK_CALL_FUNC_TAKES_BLOCKARG   1

Definition at line 1963 of file ruby.h.

◆ RUBY_CONST_ID

#define RUBY_CONST_ID (   var,
  str 
)    do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)

Definition at line 1838 of file ruby.h.

◆ RUBY_CONST_ID_CACHE

#define RUBY_CONST_ID_CACHE (   result,
  str 
)
Value:
{ \
static ID rb_intern_id_cache; \
if (!rb_intern_id_cache) \
rb_intern_id_cache = rb_intern2((str), (long)strlen(str)); \
result rb_intern_id_cache; \
}

Definition at line 1831 of file ruby.h.

◆ ruby_debug

#define ruby_debug   (*rb_ruby_debug_ptr())

Definition at line 1926 of file ruby.h.

◆ RUBY_EVENT_ALL

#define RUBY_EVENT_ALL   0x00ff

Definition at line 2250 of file ruby.h.

◆ RUBY_EVENT_B_CALL

#define RUBY_EVENT_B_CALL   0x0100

Definition at line 2253 of file ruby.h.

◆ RUBY_EVENT_B_RETURN

#define RUBY_EVENT_B_RETURN   0x0200

Definition at line 2254 of file ruby.h.

◆ RUBY_EVENT_C_CALL

#define RUBY_EVENT_C_CALL   0x0020

Definition at line 2247 of file ruby.h.

◆ RUBY_EVENT_C_RETURN

#define RUBY_EVENT_C_RETURN   0x0040

Definition at line 2248 of file ruby.h.

◆ RUBY_EVENT_CALL

#define RUBY_EVENT_CALL   0x0008

Definition at line 2245 of file ruby.h.

◆ RUBY_EVENT_CLASS

#define RUBY_EVENT_CLASS   0x0002

Definition at line 2243 of file ruby.h.

◆ RUBY_EVENT_END

#define RUBY_EVENT_END   0x0004

Definition at line 2244 of file ruby.h.

◆ RUBY_EVENT_FIBER_SWITCH

#define RUBY_EVENT_FIBER_SWITCH   0x1000

Definition at line 2257 of file ruby.h.

◆ RUBY_EVENT_LINE

#define RUBY_EVENT_LINE   0x0001

Definition at line 2242 of file ruby.h.

◆ RUBY_EVENT_NONE

#define RUBY_EVENT_NONE   0x0000

Definition at line 2241 of file ruby.h.

◆ RUBY_EVENT_RAISE

#define RUBY_EVENT_RAISE   0x0080

Definition at line 2249 of file ruby.h.

◆ RUBY_EVENT_RESERVED_FOR_INTERNAL_USE

#define RUBY_EVENT_RESERVED_FOR_INTERNAL_USE   0x030000

Definition at line 2262 of file ruby.h.

◆ RUBY_EVENT_RETURN

#define RUBY_EVENT_RETURN   0x0010

Definition at line 2246 of file ruby.h.

◆ RUBY_EVENT_SCRIPT_COMPILED

#define RUBY_EVENT_SCRIPT_COMPILED   0x2000

Definition at line 2258 of file ruby.h.

◆ RUBY_EVENT_SWITCH

#define RUBY_EVENT_SWITCH   0x040000 /* obsolete name. this macro is for compatibility */

Definition at line 2266 of file ruby.h.

◆ RUBY_EVENT_THREAD_BEGIN

#define RUBY_EVENT_THREAD_BEGIN   0x0400

Definition at line 2255 of file ruby.h.

◆ RUBY_EVENT_THREAD_END

#define RUBY_EVENT_THREAD_END   0x0800

Definition at line 2256 of file ruby.h.

◆ RUBY_EVENT_TRACEPOINT_ALL

#define RUBY_EVENT_TRACEPOINT_ALL   0xffff

Definition at line 2259 of file ruby.h.

◆ RUBY_FL_USER19

#define RUBY_FL_USER19   (((VALUE)1)<<(RUBY_FL_USHIFT+19))

Definition at line 878 of file ruby.h.

◆ RUBY_FL_USER_N

#define RUBY_FL_USER_N (   n)    RUBY_FL_USER##n = (1<<(RUBY_FL_USHIFT+n))

Definition at line 855 of file ruby.h.

◆ RUBY_INTEGER_UNIFICATION

#define RUBY_INTEGER_UNIFICATION   1

Definition at line 1563 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_FREEOBJ

#define RUBY_INTERNAL_EVENT_FREEOBJ   0x200000

Definition at line 2269 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_GC_END_MARK

#define RUBY_INTERNAL_EVENT_GC_END_MARK   0x800000

Definition at line 2271 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_GC_END_SWEEP

#define RUBY_INTERNAL_EVENT_GC_END_SWEEP   0x1000000

Definition at line 2272 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_GC_ENTER

#define RUBY_INTERNAL_EVENT_GC_ENTER   0x2000000

Definition at line 2273 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_GC_EXIT

#define RUBY_INTERNAL_EVENT_GC_EXIT   0x4000000

Definition at line 2274 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_GC_START

#define RUBY_INTERNAL_EVENT_GC_START   0x400000

Definition at line 2270 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_MASK

#define RUBY_INTERNAL_EVENT_MASK   0xffff0000

Definition at line 2276 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_NEWOBJ

#define RUBY_INTERNAL_EVENT_NEWOBJ   0x100000

Definition at line 2268 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_OBJSPACE_MASK

#define RUBY_INTERNAL_EVENT_OBJSPACE_MASK   0x7f00000

Definition at line 2275 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_SWITCH

#define RUBY_INTERNAL_EVENT_SWITCH   0x040000

Definition at line 2265 of file ruby.h.

◆ RUBY_METHOD_FUNC

#define RUBY_METHOD_FUNC (   func)    ((VALUE (*)(ANYARGS))(func))

Definition at line 2859 of file ruby.h.

◆ RUBY_UNTYPED_DATA_FUNC

#define RUBY_UNTYPED_DATA_FUNC (   func)    DEPRECATED(func)

Definition at line 1397 of file ruby.h.

◆ ruby_verbose

#define ruby_verbose   (*rb_ruby_verbose_ptr())

Definition at line 1925 of file ruby.h.

◆ RUBY_VM

#define RUBY_VM   1 /* YARV */

Definition at line 2236 of file ruby.h.

◆ ST2FIX

#define ST2FIX (   h)    RB_ST2FIX(h)

Definition at line 1655 of file ruby.h.

◆ STRCASECMP

#define STRCASECMP (   s1,
  s2 
)    (st_locale_insensitive_strcasecmp((s1), (s2)))

Definition at line 2323 of file ruby.h.

◆ STRNCASECMP

#define STRNCASECMP (   s1,
  s2,
  n 
)    (st_locale_insensitive_strncasecmp((s1), (s2), (n)))

Definition at line 2324 of file ruby.h.

◆ STRTOUL

#define STRTOUL (   str,
  endptr,
  base 
)    (ruby_strtoul((str), (endptr), (base)))

Definition at line 2327 of file ruby.h.

◆ TOLOWER

#define TOLOWER (   c)    rb_tolower(c)

Definition at line 2319 of file ruby.h.

◆ TOUPPER

#define TOUPPER (   c)    rb_toupper(c)

Definition at line 2318 of file ruby.h.

◆ UINT2NUM

#define UINT2NUM (   x)    RB_UINT2NUM(x)

Definition at line 1610 of file ruby.h.

◆ ULONG2NUM

#define ULONG2NUM (   x)    RB_ULONG2NUM(x)

Definition at line 1645 of file ruby.h.

◆ USE_RGENGC_LOGGING_WB_UNPROTECT

#define USE_RGENGC_LOGGING_WB_UNPROTECT   0

Definition at line 1512 of file ruby.h.

◆ USHORT2NUM

#define USHORT2NUM (   x)    RB_INT2FIX(x)

Definition at line 1646 of file ruby.h.

◆ ZALLOC

#define ZALLOC (   type)    RB_ZALLOC(type)

Definition at line 1666 of file ruby.h.

◆ ZALLOC_N

#define ZALLOC_N (   type,
  n 
)    RB_ZALLOC_N(type,n)

Definition at line 1665 of file ruby.h.

Typedef Documentation

◆ rb_block_call_func

typedef VALUE rb_block_call_func(RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg))

Definition at line 1966 of file ruby.h.

◆ rb_block_call_func_t

Definition at line 1967 of file ruby.h.

◆ rb_event_flag_t

Definition at line 2278 of file ruby.h.

◆ rb_event_hook_func_t

typedef void(* rb_event_hook_func_t) (rb_event_flag_t evflag, VALUE data, VALUE self, ID mid, VALUE klass)

Definition at line 2279 of file ruby.h.

◆ rb_gvar_getter_t

typedef VALUE rb_gvar_getter_t(ID id, VALUE *data)

Definition at line 1782 of file ruby.h.

◆ rb_gvar_marker_t

typedef void rb_gvar_marker_t(VALUE *var)

Definition at line 1784 of file ruby.h.

◆ rb_gvar_setter_t

typedef void rb_gvar_setter_t(VALUE val, ID id, VALUE *data)

Definition at line 1783 of file ruby.h.

◆ ruby_glob_func

typedef int ruby_glob_func(const char *, VALUE, void *)

Definition at line 1768 of file ruby.h.

Enumeration Type Documentation

◆ rb_io_wait_readwrite

Enumerator
RB_IO_WAIT_READABLE 
RB_IO_WAIT_WRITABLE 
RB_IO_WAIT_READABLE 
RB_IO_WAIT_WRITABLE 

Definition at line 1929 of file ruby.h.

Function Documentation

◆ DEPRECATED_BY() [1/2]

DEPRECATED_BY ( rb_data_object_wrap  ,
static inline VALUE   rb_data_object_allocVALUE, void *, RUBY_DATA_FUNC, RUBY_DATA_FUNC 
)

◆ DEPRECATED_BY() [2/2]

DEPRECATED_BY ( rb_data_typed_object_wrap  ,
static inline VALUE   rb_data_typed_object_allocVALUE, void *, const rb_data_type_t * 
)

◆ NORETURN() [1/16]

NORETURN ( rb_gvar_setter_t  rb_gvar_readonly_setter)

◆ NORETURN() [2/16]

NORETURN ( void   rb_bug_errnoconst char *, int)

◆ NORETURN() [3/16]

NORETURN ( void   rb_exitint)

◆ NORETURN() [4/16]

NORETURN ( void   rb_insecure_operationvoid)

◆ NORETURN() [5/16]

NORETURN ( void   rb_mod_sys_failVALUE, const char *)

◆ NORETURN() [6/16]

NORETURN ( void   rb_mod_sys_fail_strVALUE, VALUE)

◆ NORETURN() [7/16]

NORETURN ( void   rb_mod_syserr_failVALUE, int, const char *)

◆ NORETURN() [8/16]

NORETURN ( void   rb_mod_syserr_fail_strVALUE, int, VALUE)

◆ NORETURN() [9/16]

NORETURN ( void   rb_readwrite_sys_failenum rb_io_wait_readwrite, const char *)

◆ NORETURN() [10/16]

NORETURN ( void   rb_readwrite_syserr_failenum rb_io_wait_readwrite, int, const char *)

◆ NORETURN() [11/16]

NORETURN ( void   rb_sys_failconst char *)

◆ NORETURN() [12/16]

NORETURN ( void   rb_sys_fail_strVALUE)

◆ NORETURN() [13/16]

NORETURN ( void   rb_syserr_failint, const char *)

◆ NORETURN() [14/16]

NORETURN ( void   rb_syserr_fail_strint, VALUE)

◆ NORETURN() [15/16]

NORETURN ( void   rb_throwconst char *, VALUE)

◆ NORETURN() [16/16]

NORETURN ( void   ruby_malloc_size_overflowsize_t, size_t)

◆ PRINTF_ARGS() [1/6]

PRINTF_ARGS ( int   ruby_snprintfchar *str, size_t n, char const *fmt,...,
,
 
)

◆ PRINTF_ARGS() [2/6]

COLDFUNC PRINTF_ARGS ( NORETURN(void rb_bug(const char *,...))  ,
,
 
)

◆ PRINTF_ARGS() [3/6]

PRINTF_ARGS ( NORETURN(void rb_fatal(const char *,...))  ,
,
 
)

◆ PRINTF_ARGS() [4/6]

PRINTF_ARGS ( NORETURN(void rb_raise(VALUE, const char *,...))  ,
,
 
)

◆ PRINTF_ARGS() [5/6]

PRINTF_ARGS ( void   rb_compile_warningconst char *, int, const char *,...,
,
 
)

◆ PRINTF_ARGS() [6/6]

COLDFUNC PRINTF_ARGS ( void   rb_warningconst char *,...,
,
 
)

◆ rb_add_event_hook()

void rb_add_event_hook ( rb_event_hook_func_t  func,
rb_event_flag_t  events,
VALUE  data 
)

Definition at line 157 of file vm_trace.c.

◆ rb_alloc_tmp_buffer()

void* rb_alloc_tmp_buffer ( volatile VALUE store,
long  len 
)

Definition at line 10264 of file gc.c.

◆ rb_alloc_tmp_buffer_with_count()

void* rb_alloc_tmp_buffer_with_count ( volatile VALUE store,
size_t  len,
size_t  count 
)

◆ rb_block_call()

VALUE rb_block_call ( VALUE  ,
ID  ,
int  ,
const VALUE ,
rb_block_call_func_t  ,
VALUE   
)

Definition at line 1470 of file vm_eval.c.

◆ rb_block_call_kw()

VALUE rb_block_call_kw ( VALUE  ,
ID  ,
int  ,
const VALUE ,
rb_block_call_func_t  ,
VALUE  ,
int   
)

Definition at line 1484 of file vm_eval.c.

◆ rb_block_given_p()

int rb_block_given_p ( void  )

Determines if the current method is given a block.

Return values
zeroif not given
non-zeroif given

Definition at line 898 of file eval.c.

◆ rb_call_super()

VALUE rb_call_super ( int  ,
const VALUE  
)

Definition at line 306 of file vm_eval.c.

◆ rb_call_super_kw()

VALUE rb_call_super_kw ( int  ,
const VALUE ,
int   
)

Definition at line 298 of file vm_eval.c.

◆ rb_catch()

VALUE rb_catch ( const char ,
rb_block_call_func_t  ,
VALUE   
)

Definition at line 2290 of file vm_eval.c.

◆ rb_catch_obj()

VALUE rb_catch_obj ( VALUE  ,
rb_block_call_func_t  ,
VALUE   
)

Definition at line 2332 of file vm_eval.c.

◆ rb_check_id()

ID rb_check_id ( volatile VALUE namep)

Returns ID for the given name if it is interned already, or 0.

Parameters
namepthe pointer to the name object
Returns
the ID for *namep
Precondition
the object referred by namep must be a Symbol or a String, or possible to convert with to_str method.
Postcondition
the object referred by namep is a Symbol or a String if non-zero value is returned, or is a String if 0 is returned.

Definition at line 919 of file symbol.c.

Referenced by rb_execarg_addopt(), rb_f_untrace_var(), and rb_obj_singleton_method().

◆ rb_check_symbol()

VALUE rb_check_symbol ( volatile VALUE namep)

Definition at line 952 of file symbol.c.

◆ rb_class2name()

const char* rb_class2name ( VALUE  )

Definition at line 280 of file variable.c.

Referenced by rb_clear_method_cache_by_class().

◆ rb_current_receiver()

VALUE rb_current_receiver ( void  )

Definition at line 314 of file vm_eval.c.

◆ rb_define_alias()

void rb_define_alias ( VALUE  klass,
const char name1,
const char name2 
)

Defines an alias of a method.

Parameters
klassthe class which the original method belongs to
name1a new name for the method
name2the original name of the method

Definition at line 1800 of file class.c.

◆ rb_define_attr()

void rb_define_attr ( VALUE  klass,
const char name,
int  read,
int  write 
)

Defines (a) public accessor method(s) for an attribute.

Parameters
klassthe class which the attribute will belongs to
namename of the attribute
reada getter method for the attribute will be defined if read is non-zero.
writea setter method for the attribute will be defined if write is non-zero.

Definition at line 1813 of file class.c.

◆ rb_define_class()

VALUE rb_define_class ( const char name,
VALUE  super 
)

Defines a top-level class.

Parameters
namename of the class
supera class from which the new class will derive.
Returns
the created class
Exceptions
TypeErrorif the constant name name is already taken but the constant is not a Class.
TypeErrorif the class is already defined but the class can not be reopened because its superclass is not super.
ArgumentErrorif the super is NULL.
Postcondition
top-level constant named name refers the returned class.
Note
if a class named name is already defined and its superclass is super, the function just returns the defined class.

Definition at line 649 of file class.c.

◆ rb_define_class_under()

VALUE rb_define_class_under ( VALUE  outer,
const char name,
VALUE  super 
)

Defines a class under the namespace of outer.

Parameters
outera class which contains the new class.
namename of the new class
supera class from which the new class will derive. NULL means Object class.
Returns
the created class
Exceptions
TypeErrorif the constant name name is already taken but the constant is not a Class.
TypeErrorif the class is already defined but the class can not be reopened because its superclass is not super.
Postcondition
top-level constant named name refers the returned class.
Note
if a class named name is already defined and its superclass is super, the function just returns the defined class.

Definition at line 698 of file class.c.

◆ rb_define_const()

void rb_define_const ( VALUE  ,
const char ,
VALUE   
)

◆ rb_define_global_const()

void rb_define_global_const ( const char ,
VALUE   
)

Definition at line 2892 of file variable.c.

Referenced by Init_ruby_description().

◆ rb_define_global_function()

void rb_define_global_function ( const char name,
VALUE(*)(ANYARGS func,
int  argc 
)

Defines a global function.

Parameters
namename of the function
functhe method body
argcthe number of parameters, or -1 or -2. see Defining methods.

Definition at line 1787 of file class.c.

References argc, name, rb_define_module_function(), and rb_mKernel.

Referenced by Init_jump(), Init_signal(), Init_vm_eval(), Init_vm_trace(), and InitVM_Random().

◆ rb_define_hooked_variable() [1/2]

void rb_define_hooked_variable ( const char q,
VALUE w,
type *  e,
void_type *  r 
)
inline

Define a function-backended global variable.

Parameters
[in]qName of the variable.
[in]wVariable storage.
[in]eGetter function.
[in]rSetter function.
Note
Both functions can be nullptr.
See also
rb_define_virtual_variable()
Deprecated:
Use glanular typed overload instead.
Parameters
[in]qName of the variable.
[in]wVariable storage.
[in]eGetter function.
[in]rSetter function.
Note
Both functions can be nullptr.
See also
rb_define_virtual_variable()
Deprecated:
Use glanular typed overload instead.
Parameters
[in]qName of the variable.
[in]wVariable storage.
[in]eGetter function.
[in]rSetter function.
Note
Both functions can be nullptr.
See also
rb_define_virtual_variable()
Deprecated:
Use glanular typed overload instead.

Definition at line 106 of file cxxanyargs.hpp.

◆ rb_define_hooked_variable() [2/2]

void ruby::backward::cxxanyargs::rb_define_hooked_variable ( const char q,
VALUE w,
type e,
void_type r 
)
inline

Define a function-backended global variable.

Parameters
[in]qName of the variable.
[in]wVariable storage.
[in]eGetter function.
[in]rSetter function.
Note
Both functions can be nullptr.
See also
rb_define_virtual_variable()
Deprecated:
Use glanular typed overload instead.
Parameters
[in]qName of the variable.
[in]wVariable storage.
[in]eGetter function.
[in]rSetter function.
Note
Both functions can be nullptr.
See also
rb_define_virtual_variable()
Deprecated:
Use glanular typed overload instead.
Parameters
[in]qName of the variable.
[in]wVariable storage.
[in]eGetter function.
[in]rSetter function.
Note
Both functions can be nullptr.
See also
rb_define_virtual_variable()
Deprecated:
Use glanular typed overload instead.

Definition at line 106 of file cxxanyargs.hpp.

References ruby::backward::cxxanyargs::rb_define_hooked_variable().

Referenced by Init_load(), rb_define_hooked_variable(), and ruby_prog_init().

◆ rb_define_method()

void rb_define_method ( VALUE  ,
const char ,
VALUE(*)(ANYARGS ,
int   
)

◆ rb_define_module()

VALUE rb_define_module ( const char )

Definition at line 772 of file class.c.

◆ rb_define_module_function()

void rb_define_module_function ( VALUE  module,
const char name,
VALUE(*)(ANYARGS func,
int  argc 
)

Defines a module function for module.

Parameters
modulean module or a class.
namename of the function
functhe method body
argcthe number of parameters, or -1 or -2. see Defining methods.

Definition at line 1771 of file class.c.

References argc, name, rb_define_private_method(), and rb_define_singleton_method().

Referenced by exp2(), Init_coverage(), Init_fiddle(), Init_nkf(), Init_object_tracing(), Init_objspace(), Init_objspace_dump(), Init_openssl(), Init_ossl_pkey(), Init_ossl_rand(), and rb_define_global_function().

◆ rb_define_module_under()

VALUE rb_define_module_under ( VALUE  ,
const char  
)

Definition at line 797 of file class.c.

◆ rb_define_readonly_variable()

void rb_define_readonly_variable ( const char ,
const VALUE  
)

Definition at line 505 of file variable.c.

◆ rb_define_variable()

void rb_define_variable ( const char ,
VALUE  
)

Definition at line 499 of file variable.c.

◆ rb_define_virtual_variable()

void rb_define_virtual_variable ( const char q,
type *  w,
void_type *  e 
)
inline

Define a function-backended global variable.

Parameters
[in]qName of the variable.
[in]wGetter function.
[in]eSetter function.
Note
Both functions can be nullptr.
See also
rb_define_hooked_variable()
Deprecated:
Use glanular typed overload instead.
Parameters
[in]qName of the variable.
[in]wGetter function.
[in]eSetter function.
Note
Both functions can be nullptr.
See also
rb_define_hooked_variable()
Deprecated:
Use glanular typed overload instead.
Parameters
[in]qName of the variable.
[in]wGetter function.
[in]eSetter function.
Note
Both functions can be nullptr.
See also
rb_define_hooked_variable()
Deprecated:
Use glanular typed overload instead.

Definition at line 59 of file cxxanyargs.hpp.

◆ rb_each()

VALUE rb_each ( VALUE  )

Definition at line 1542 of file vm_eval.c.

◆ rb_empty_keyword_given_p()

int rb_empty_keyword_given_p ( void  )

Definition at line 919 of file eval.c.

◆ rb_ensure()

VALUE rb_ensure ( VALUE(*)(VALUE b_proc,
VALUE  data1,
VALUE(*)(VALUE e_proc,
VALUE  data2 
)

An equivalent to ensure clause.

Equivalent to begin .. ensure .. end.

Calls the function b_proc with data1 as the argument, then calls e_proc with data2 when execution terminated.

Returns
The return value of b_proc if no exception occurred, or Qnil if otherwise.
See also
rb_rescue
rb_rescue2
rb_protect

Definition at line 1115 of file eval.c.

◆ rb_equal()

VALUE rb_equal ( VALUE  ,
VALUE   
)

Same as Object#===, case equality.

Definition at line 124 of file object.c.

Referenced by rb_ary_assoc(), rb_ary_delete(), rb_ary_includes(), rb_ary_rassoc(), and rb_str_equal().

◆ rb_eval_string()

VALUE rb_eval_string ( const char str)

Evaluates the given string in an isolated binding.

Here "isolated" means the binding does not inherit any other binding. This behaves same as the binding for required libraries.

FILE will be "(eval)", and LINE starts from 1 in the evaluation.

Parameters
strRuby code to evaluate.
Returns
The evaluated result.
Exceptions
ExceptionRaises an exception on error.

Definition at line 1715 of file vm_eval.c.

◆ rb_eval_string_protect()

VALUE rb_eval_string_protect ( const char str,
int pstate 
)

Evaluates the given string in an isolated binding.

FILE will be "(eval)", and LINE starts from 1 in the evaluation.

See also
rb_eval_string
Parameters
strRuby code to evaluate.
stateBeing set to zero if succeeded. Nonzero if an error occurred.
Returns
The evaluated result if succeeded, an undefined value if otherwise.

Definition at line 1737 of file vm_eval.c.

◆ rb_eval_string_wrap()

VALUE rb_eval_string_wrap ( const char str,
int pstate 
)

Evaluates the given string under a module binding in an isolated binding.

This is same as the binding for loaded libraries on "load('foo', true)".

FILE will be "(eval)", and LINE starts from 1 in the evaluation.

See also
rb_eval_string
Parameters
strRuby code to evaluate.
stateBeing set to zero if succeeded. Nonzero if an error occurred.
Returns
The evaluated result if succeeded, an undefined value if otherwise.

Definition at line 1769 of file vm_eval.c.

◆ rb_extend_object()

void rb_extend_object ( VALUE  obj,
VALUE  module 
)

Extend the object with the module.

Same as Module#extend_object.

Definition at line 1701 of file eval.c.

◆ rb_extract_keywords()

VALUE rb_extract_keywords ( VALUE orighash)

Definition at line 1868 of file class.c.

◆ rb_free_tmp_buffer()

void void rb_free_tmp_buffer ( volatile VALUE store)

Definition at line 10276 of file gc.c.

◆ rb_freeze_singleton_class()

void rb_freeze_singleton_class ( VALUE  klass)

Definition at line 1674 of file class.c.

References FL_FREEZE, FL_SINGLETON, FL_TEST, klass, OBJ_FREEZE_RAW, RBASIC, RBASIC_CLASS, and RCLASS_ORIGIN.

◆ rb_funcall()

VALUE rb_funcall ( VALUE  recv,
ID  mid,
int  n,
  ... 
)

Calls a method.

Parameters
recvreceiver of the method
midan ID that represents the name of the method
nthe number of arguments
...arbitrary number of method arguments
Precondition
each of arguments after n must be a VALUE.

Definition at line 922 of file vm_eval.c.

◆ rb_funcall_passing_block()

VALUE rb_funcall_passing_block ( VALUE  ,
ID  ,
int  ,
const VALUE  
)

Definition at line 1032 of file vm_eval.c.

◆ rb_funcall_passing_block_kw()

VALUE rb_funcall_passing_block_kw ( VALUE  ,
ID  ,
int  ,
const VALUE ,
int   
)

Definition at line 1039 of file vm_eval.c.

◆ rb_funcall_with_block()

VALUE rb_funcall_with_block ( VALUE  ,
ID  ,
int  ,
const VALUE ,
VALUE   
)

Definition at line 1050 of file vm_eval.c.

◆ rb_funcall_with_block_kw()

VALUE rb_funcall_with_block_kw ( VALUE  ,
ID  ,
int  ,
const VALUE ,
VALUE  ,
int   
)

Definition at line 1060 of file vm_eval.c.

Referenced by rb_sym_proc_call().

◆ rb_funcallv()

VALUE rb_funcallv ( VALUE  recv,
ID  mid,
int  argc,
const VALUE argv 
)

Calls a method.

Parameters
recvreceiver of the method
midan ID that represents the name of the method
argcthe number of arguments
argvpointer to an array of method arguments

Definition at line 956 of file vm_eval.c.

◆ rb_funcallv_kw()

VALUE rb_funcallv_kw ( VALUE  ,
ID  ,
int  ,
const VALUE ,
int   
)

Definition at line 962 of file vm_eval.c.

Referenced by rb_obj_call_init(), and rb_obj_call_init_kw().

◆ rb_funcallv_public()

VALUE rb_funcallv_public ( VALUE  recv,
ID  mid,
int  argc,
const VALUE argv 
)

Calls a method.

Same as rb_funcallv but this function can call only public methods.

Parameters
recvreceiver of the method
midan ID that represents the name of the method
argcthe number of arguments
argvpointer to an array of method arguments

Definition at line 980 of file vm_eval.c.

◆ rb_funcallv_public_kw()

VALUE rb_funcallv_public_kw ( VALUE  ,
ID  ,
int  ,
const VALUE ,
int   
)

Definition at line 986 of file vm_eval.c.

◆ rb_gc_register_address()

void rb_gc_register_address ( VALUE )

Definition at line 7079 of file gc.c.

◆ rb_gc_register_mark_object()

void rb_gc_register_mark_object ( VALUE  )

Definition at line 7065 of file gc.c.

◆ rb_gc_unregister_address()

void rb_gc_unregister_address ( VALUE )

Definition at line 7091 of file gc.c.

◆ rb_gc_writebarrier()

void rb_gc_writebarrier ( VALUE  a,
VALUE  b 
)

Definition at line 6819 of file gc.c.

◆ rb_gc_writebarrier_unprotect()

void rb_gc_writebarrier_unprotect ( VALUE  obj)

Definition at line 6840 of file gc.c.

◆ rb_get_kwargs()

int rb_get_kwargs ( VALUE  keyword_hash,
const ID table,
int  required,
int  optional,
VALUE  
)

Definition at line 1886 of file class.c.

◆ rb_glob()

void rb_glob ( const char ,
void(*)(const char *, VALUE, void *)  ,
VALUE   
)

Definition at line 2544 of file dir.c.

◆ rb_global_variable()

Definition at line 7114 of file gc.c.

◆ rb_gv_get()

VALUE rb_gv_get ( const char )

Definition at line 680 of file variable.c.

◆ rb_gv_set()

VALUE rb_gv_set ( const char ,
VALUE   
)

Definition at line 671 of file variable.c.

◆ rb_id2name()

const char* rb_id2name ( ID  )

Definition at line 801 of file symbol.c.

Referenced by rb_undef(), rsock_inspect_sockaddr(), and ruby_debug_print_id().

◆ rb_id2str()

VALUE rb_id2str ( ID  )

Definition at line 795 of file symbol.c.

◆ rb_include_module()

void rb_include_module ( VALUE  ,
VALUE   
)

Definition at line 869 of file class.c.

◆ rb_intern()

ID rb_intern ( const char )

Definition at line 660 of file symbol.c.

◆ rb_intern2()

ID rb_intern2 ( const char ,
long   
)

Definition at line 653 of file symbol.c.

Referenced by Init_load().

◆ rb_intern_str()

ID rb_intern_str ( VALUE  str)

Definition at line 666 of file symbol.c.

◆ rb_iterate()

VALUE rb_iterate ( VALUE(*)(VALUE ,
VALUE  ,
rb_block_call_func_t  ,
VALUE   
)

Definition at line 1444 of file vm_eval.c.

◆ rb_iv_get()

VALUE rb_iv_get ( VALUE  ,
const char  
)

Definition at line 3294 of file variable.c.

◆ rb_iv_set()

VALUE rb_iv_set ( VALUE  ,
const char ,
VALUE   
)

Definition at line 3307 of file variable.c.

◆ rb_keyword_given_p()

int rb_keyword_given_p ( void  )

Definition at line 911 of file eval.c.

◆ rb_need_block()

void rb_need_block ( void  )

Declares that the current method needs a block.

Raises a LocalJumpError if not given a block.

Definition at line 932 of file eval.c.

◆ rb_obj_classname()

const char* rb_obj_classname ( VALUE  )

Definition at line 289 of file variable.c.

Referenced by rb_Hash().

◆ rb_obj_infect()

void rb_obj_infect ( VALUE  victim,
VALUE  carrier 
)

Does nothing.

This method is deprecated and will be removed in Ruby 3.2.

Definition at line 1068 of file object.c.

◆ rb_p()

void rb_p ( VALUE  )

Definition at line 7798 of file io.c.

◆ rb_prepend_module()

void rb_prepend_module ( VALUE  ,
VALUE   
)

Definition at line 999 of file class.c.

◆ rb_remove_event_hook()

int rb_remove_event_hook ( rb_event_hook_func_t  func)

Definition at line 262 of file vm_trace.c.

◆ rb_require()

VALUE rb_require ( const char )

Definition at line 1117 of file load.c.

Referenced by Init_generator(), Init_ossl_digest(), and Init_parser().

◆ rb_rescue()

VALUE rb_rescue ( VALUE(*)(VALUE b_proc,
VALUE  data1,
VALUE(*)(VALUE, VALUE r_proc,
VALUE  data2 
)

An equivalent of rescue clause.

Equivalent to begin .. rescue .. end.

It is same as

rb_rescue2(b_proc, data1, r_proc, data2, rb_eStandardError, (VALUE)0);
See also
rb_rescue2
rb_ensure
rb_protect

Definition at line 1047 of file eval.c.

◆ rb_rescue2()

VALUE rb_rescue2 ( VALUE(*)(VALUE b_proc,
VALUE  data1,
VALUE(*)(VALUE, VALUE r_proc,
VALUE  data2,
  ... 
)

An equivalent of rescue clause.

Equivalent to begin .. rescue err_type .. end

Parameters
[in]b_proca function which potentially raises an exception.
[in]data1the argument of b_proc
[in]r_proca function which rescues an exception in b_proc.
[in]data2the first argument of r_proc
[in]...1 or more exception classes. Must be terminated by (VALUE)0.

First it calls the function b_proc, with data1 as the argument. When b_proc raises an exception, it calls r_proc with data2 and the exception object if the exception is a kind of one of the given exception classes.

Returns
the return value of b_proc if no exception occurs, or the return value of r_proc if otherwise.
See also
rb_rescue
rb_ensure
rb_protect

Definition at line 962 of file eval.c.

◆ rb_ruby_debug_ptr()

VALUE* rb_ruby_debug_ptr ( void  )

Definition at line 3381 of file vm.c.

◆ rb_ruby_verbose_ptr()

VALUE* rb_ruby_verbose_ptr ( void  )

Definition at line 3375 of file vm.c.

◆ rb_scan_args()

int rb_scan_args ( int  ,
const VALUE ,
const char ,
  ... 
)

Definition at line 2159 of file class.c.

◆ rb_scan_args_kw()

int rb_scan_args_kw ( int  ,
int  ,
const VALUE ,
const char ,
  ... 
)

Definition at line 2180 of file class.c.

◆ rb_sym2str()

VALUE rb_sym2str ( VALUE  )

Definition at line 784 of file symbol.c.

◆ rb_syserr_new()

VALUE rb_syserr_new ( int  ,
const char  
)

Definition at line 2767 of file error.c.

◆ rb_syserr_new_str()

VALUE rb_syserr_new_str ( int  n,
VALUE  arg 
)

Definition at line 2775 of file error.c.

◆ rb_to_id()

ID rb_to_id ( VALUE  )

Definition at line 11146 of file string.c.

Referenced by rb_f_trace_var().

◆ rb_to_symbol()

VALUE rb_to_symbol ( VALUE  name)

Definition at line 11156 of file string.c.

◆ rb_undef_method()

void rb_undef_method ( VALUE  ,
const char  
)

Definition at line 1575 of file class.c.

◆ rb_vrescue2()

VALUE rb_vrescue2 ( VALUE(*)(VALUE b_proc,
VALUE  data1,
VALUE(*)(VALUE, VALUE r_proc,
VALUE  data2,
va_list  args 
)

An equivalent of rescue clause.

Equivalent to begin .. rescue err_type .. end

Parameters
[in]b_proca function which potentially raises an exception.
[in]data1the argument of b_proc
[in]r_proca function which rescues an exception in b_proc.
[in]data2the first argument of r_proc
[in]...1 or more exception classes. Must be terminated by (VALUE)0.

First it calls the function b_proc, with data1 as the argument. When b_proc raises an exception, it calls r_proc with data2 and the exception object if the exception is a kind of one of the given exception classes.

Returns
the return value of b_proc if no exception occurs, or the return value of r_proc if otherwise.
See also
rb_rescue
rb_ensure
rb_protect
Parameters
[in]argsexception classes, terminated by 0.

Definition at line 977 of file eval.c.

◆ rb_yield()

VALUE rb_yield ( VALUE  )

Definition at line 1237 of file vm_eval.c.

Referenced by ossl_generate_cb_2(), rb_ary_delete(), and ruby_float_step().

◆ rb_yield_block()

VALUE rb_yield_block ( RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg)  )

◆ rb_yield_splat()

VALUE rb_yield_splat ( VALUE  )

Definition at line 1283 of file vm_eval.c.

◆ rb_yield_splat_kw()

VALUE rb_yield_splat_kw ( VALUE  ,
int   
)

Definition at line 1296 of file vm_eval.c.

◆ rb_yield_values()

VALUE rb_yield_values ( int  n,
  ... 
)

Definition at line 1249 of file vm_eval.c.

◆ rb_yield_values2()

VALUE rb_yield_values2 ( int  n,
const VALUE argv 
)

Definition at line 1271 of file vm_eval.c.

◆ rb_yield_values_kw()

VALUE rb_yield_values_kw ( int  n,
const VALUE argv,
int  kw_splat 
)

Definition at line 1277 of file vm_eval.c.

◆ ruby_brace_glob()

int ruby_brace_glob ( const char ,
int  ,
ruby_glob_func ,
VALUE   
)

Definition at line 2659 of file dir.c.

◆ ruby_glob()

int ruby_glob ( const char ,
int  ,
ruby_glob_func ,
VALUE   
)

Definition at line 2519 of file dir.c.

◆ ruby_native_thread_p()

int ruby_native_thread_p ( void  )

Definition at line 5277 of file thread.c.

◆ ruby_strtoul()

unsigned long ruby_strtoul ( const char str,
char **  endptr,
int  base 
)

Definition at line 130 of file util.c.

◆ ruby_vsnprintf()

int ruby_vsnprintf ( char str,
size_t  n,
char const fmt,
va_list  ap 
)

Definition at line 1004 of file sprintf.c.

◆ st_locale_insensitive_strcasecmp()

int st_locale_insensitive_strcasecmp ( const char s1,
const char s2 
)

Definition at line 2083 of file st.c.

References s2.

◆ st_locale_insensitive_strncasecmp()

int st_locale_insensitive_strncasecmp ( const char s1,
const char s2,
size_t  n 
)

Definition at line 2107 of file st.c.

References i, n, and s2.

Variable Documentation

◆ ary [1/6]

Definition at line 1064 of file ruby.h.

◆ ary [2/6]

const { ... } ::ary[RARRAY_EMBED_LEN_MAX]

Definition at line 1064 of file ruby.h.

◆ ary [3/6]

Definition at line 930 of file ruby.h.

◆ ary [4/6]

VALUE { ... } ::ary[ROBJECT_EMBED_LEN_MAX]

Definition at line 930 of file ruby.h.

◆ ary [5/6]

char RString::ary[RSTRING_EMBED_LEN_MAX+1]

Definition at line 999 of file ruby.h.

Referenced by rb_struct_define(), rb_struct_define_under(), and rb_sym_all_symbols().

◆ ary [6/6]

char { ... } ::ary[RSTRING_EMBED_LEN_MAX+1]

Definition at line 999 of file ruby.h.

◆ as [1/3]

union { ... } RObject::as

◆ as [2/3]

union { ... } RString::as

◆ as [3/3]

union { ... } RArray::as

◆ aux [1/4]

union { ... } RString::aux

◆ aux [2/4]

union { ... } ::aux

◆ aux [3/4]

union { ... } RArray::aux

◆ aux [4/4]

union { ... } ::aux

◆ basic [1/7]

struct RBasic RString::basic

Definition at line 989 of file ruby.h.

◆ basic [2/7]

struct RBasic RArray::basic

Definition at line 1049 of file ruby.h.

◆ basic [3/7]

struct RBasic RRegexp::basic

Definition at line 1113 of file ruby.h.

◆ basic [4/7]

struct RBasic RFile::basic

Definition at line 1135 of file ruby.h.

◆ basic [5/7]

struct RBasic RData::basic

Definition at line 1140 of file ruby.h.

◆ basic [6/7]

struct RBasic RTypedData::basic

Definition at line 1169 of file ruby.h.

◆ basic [7/7]

struct RBasic RObject::basic

Definition at line 923 of file ruby.h.

◆ capa [1/4]

long RString::capa

Definition at line 995 of file ruby.h.

Referenced by rb_str_change_terminator_length(), and rb_str_set_len().

◆ capa [2/4]

long { ... } ::capa

Definition at line 995 of file ruby.h.

◆ capa [3/4]

long { ... } ::capa

Definition at line 1054 of file ruby.h.

◆ capa [4/4]

long RArray::capa

Definition at line 1054 of file ruby.h.

◆ data [1/3]

void* RData::data

Definition at line 1143 of file ruby.h.

◆ data [2/3]

void* rb_data_type_struct::data

Definition at line 1159 of file ruby.h.

◆ data [3/3]

void* RTypedData::data

Definition at line 1172 of file ruby.h.

◆ dcompact [1/2]

void(* rb_data_type_struct::dcompact) (void *)

Definition at line 1154 of file ruby.h.

◆ dcompact [2/2]

void(* { ... } ::dcompact) (void *)

Definition at line 1154 of file ruby.h.

◆ dfree [1/3]

void(* RData::dfree) (void *)

Definition at line 1142 of file ruby.h.

◆ dfree [2/3]

void(* rb_data_type_struct::dfree) (void *)

Definition at line 1152 of file ruby.h.

◆ dfree [3/3]

void(* { ... } ::dfree) (void *)

Definition at line 1152 of file ruby.h.

◆ dmark [1/3]

void(* RData::dmark) (void *)

Definition at line 1141 of file ruby.h.

◆ dmark [2/3]

void(* rb_data_type_struct::dmark) (void *)

Definition at line 1151 of file ruby.h.

◆ dmark [3/3]

void(* { ... } ::dmark) (void *)

Definition at line 1151 of file ruby.h.

◆ dsize [1/2]

size_t(* { ... } ::dsize) (const void *)

Definition at line 1153 of file ruby.h.

◆ dsize [2/2]

size_t(* rb_data_type_struct::dsize) (const void *)

Definition at line 1153 of file ruby.h.

◆ flags

VALUE rb_data_type_struct::flags

Definition at line 1161 of file ruby.h.

◆ fptr

struct rb_io_t* RFile::fptr

Definition at line 1136 of file ruby.h.

◆ function

struct { ... } rb_data_type_struct::function

◆ heap [1/6]

struct { ... } ::heap

◆ heap [2/6]

struct { ... } RObject::heap

◆ heap [3/6]

struct { ... } RString::heap

◆ heap [4/6]

struct { ... } ::heap

◆ heap [5/6]

struct { ... } ::heap

◆ heap [6/6]

struct { ... } RArray::heap

◆ iv_index_tbl [1/2]

void* RObject::iv_index_tbl

Definition at line 928 of file ruby.h.

◆ iv_index_tbl [2/2]

void* { ... } ::iv_index_tbl

Definition at line 928 of file ruby.h.

◆ ivptr [1/2]

VALUE* RObject::ivptr

Definition at line 927 of file ruby.h.

◆ ivptr [2/2]

VALUE* { ... } ::ivptr

Definition at line 927 of file ruby.h.

◆ len [1/4]

long RString::len

Definition at line 992 of file ruby.h.

◆ len [2/4]

long { ... } ::len

Definition at line 992 of file ruby.h.

◆ len [3/4]

long RArray::len

Definition at line 1052 of file ruby.h.

◆ len [4/4]

long { ... } ::len

Definition at line 1052 of file ruby.h.

◆ numiv [1/2]

uint32_t RObject::numiv

Definition at line 926 of file ruby.h.

◆ numiv [2/2]

uint32_t { ... } ::numiv

Definition at line 926 of file ruby.h.

◆ parent

const rb_data_type_t* rb_data_type_struct::parent

Definition at line 1158 of file ruby.h.

Referenced by rb_typeddata_inherited_p().

◆ ptr [1/5]

char* RString::ptr

Definition at line 993 of file ruby.h.

◆ ptr [2/5]

char* { ... } ::ptr

Definition at line 993 of file ruby.h.

◆ ptr [3/5]

const VALUE* RArray::ptr

Definition at line 1062 of file ruby.h.

◆ ptr [4/5]

const { ... } ::ptr

Definition at line 1062 of file ruby.h.

◆ ptr [5/5]

struct re_pattern_buffer* RRegexp::ptr

Definition at line 1114 of file ruby.h.

◆ rb_cArray

RUBY_EXTERN VALUE rb_cArray

Definition at line 2011 of file ruby.h.

◆ rb_cBasicObject

RUBY_EXTERN VALUE rb_cBasicObject

Definition at line 2009 of file ruby.h.

Referenced by Init_class_hierarchy(), and rb_clear_method_cache_by_class().

◆ rb_cBinding

RUBY_EXTERN VALUE rb_cBinding

Definition at line 2015 of file ruby.h.

◆ rb_cClass

RUBY_EXTERN VALUE rb_cClass

Definition at line 2016 of file ruby.h.

Referenced by rb_check_inheritable().

◆ rb_cComplex

RUBY_EXTERN VALUE rb_cComplex

Definition at line 2027 of file ruby.h.

◆ rb_cCont

RUBY_EXTERN VALUE rb_cCont

Definition at line 2017 of file ruby.h.

◆ rb_cData

RUBY_EXTERN VALUE rb_cData

Definition at line 2018 of file ruby.h.

Referenced by Init_stringio(), and rsock_init_sockifaddr().

◆ rb_cDir

RUBY_EXTERN VALUE rb_cDir

Definition at line 2019 of file ruby.h.

◆ rb_cEncoding

RUBY_EXTERN VALUE rb_cEncoding

Definition at line 2020 of file ruby.h.

◆ rb_cEnumerator

RUBY_EXTERN VALUE rb_cEnumerator

Definition at line 2021 of file ruby.h.

◆ rb_cFalseClass

RUBY_EXTERN VALUE rb_cFalseClass

Definition at line 2022 of file ruby.h.

◆ rb_cFile

RUBY_EXTERN VALUE rb_cFile

Definition at line 2023 of file ruby.h.

◆ rb_cFloat

RUBY_EXTERN VALUE rb_cFloat

Definition at line 2028 of file ruby.h.

◆ rb_cHash

RUBY_EXTERN VALUE rb_cHash

Definition at line 2029 of file ruby.h.

◆ rb_cInteger

RUBY_EXTERN VALUE rb_cInteger

Definition at line 2031 of file ruby.h.

Referenced by Init_Bignum().

◆ rb_cIO

◆ rb_cMatch

RUBY_EXTERN VALUE rb_cMatch

Definition at line 2032 of file ruby.h.

◆ rb_cMethod

RUBY_EXTERN VALUE rb_cMethod

Definition at line 2033 of file ruby.h.

◆ rb_cModule

RUBY_EXTERN VALUE rb_cModule

Definition at line 2034 of file ruby.h.

◆ rb_cNameErrorMesg

RUBY_EXTERN VALUE rb_cNameErrorMesg

Definition at line 2035 of file ruby.h.

◆ rb_cNilClass

RUBY_EXTERN VALUE rb_cNilClass

Definition at line 2036 of file ruby.h.

◆ rb_cNumeric

RUBY_EXTERN VALUE rb_cNumeric

Definition at line 2037 of file ruby.h.

Referenced by rb_check_to_float(), and rb_node_case_when_optimizable_literal().

◆ rb_cObject

RUBY_EXTERN VALUE rb_cObject

◆ rb_cProc

RUBY_EXTERN VALUE rb_cProc

Definition at line 2038 of file ruby.h.

◆ rb_cRandom

RUBY_EXTERN VALUE rb_cRandom

Definition at line 2039 of file ruby.h.

◆ rb_cRange

RUBY_EXTERN VALUE rb_cRange

Definition at line 2040 of file ruby.h.

◆ rb_cRational

RUBY_EXTERN VALUE rb_cRational

Definition at line 2041 of file ruby.h.

◆ rb_cRegexp

RUBY_EXTERN VALUE rb_cRegexp

Definition at line 2042 of file ruby.h.

◆ rb_cStat

RUBY_EXTERN VALUE rb_cStat

Definition at line 2043 of file ruby.h.

◆ rb_cString

RUBY_EXTERN VALUE rb_cString

Definition at line 2044 of file ruby.h.

Referenced by rb_hash_key_str().

◆ rb_cStruct

RUBY_EXTERN VALUE rb_cStruct

Definition at line 2045 of file ruby.h.

◆ rb_cSymbol

RUBY_EXTERN VALUE rb_cSymbol

Definition at line 2046 of file ruby.h.

◆ rb_cThread

RUBY_EXTERN VALUE rb_cThread

Definition at line 2047 of file ruby.h.

◆ rb_cTime

RUBY_EXTERN VALUE rb_cTime

Definition at line 2048 of file ruby.h.

Referenced by asn1time_to_time(), and ole_val2variant().

◆ rb_cTrueClass

RUBY_EXTERN VALUE rb_cTrueClass

Definition at line 2049 of file ruby.h.

◆ rb_cUnboundMethod

RUBY_EXTERN VALUE rb_cUnboundMethod

Definition at line 2050 of file ruby.h.

◆ rb_eArgError

RUBY_EXTERN VALUE rb_eArgError

Definition at line 2058 of file ruby.h.

◆ rb_eEncCompatError

RUBY_EXTERN VALUE rb_eEncCompatError

Definition at line 2080 of file ruby.h.

◆ rb_eEncodingError

RUBY_EXTERN VALUE rb_eEncodingError

Definition at line 2079 of file ruby.h.

◆ rb_eEOFError

RUBY_EXTERN VALUE rb_eEOFError

Definition at line 2059 of file ruby.h.

◆ rb_eException

RUBY_EXTERN VALUE rb_eException

Definition at line 2052 of file ruby.h.

◆ rb_eFatal

RUBY_EXTERN VALUE rb_eFatal

Definition at line 2057 of file ruby.h.

◆ rb_eFloatDomainError

RUBY_EXTERN VALUE rb_eFloatDomainError

Definition at line 2075 of file ruby.h.

◆ rb_eFrozenError

RUBY_EXTERN VALUE rb_eFrozenError

Definition at line 2066 of file ruby.h.

◆ rb_eIndexError

RUBY_EXTERN VALUE rb_eIndexError

Definition at line 2060 of file ruby.h.

◆ rb_eInterrupt

RUBY_EXTERN VALUE rb_eInterrupt

Definition at line 2055 of file ruby.h.

◆ rb_eIOError

RUBY_EXTERN VALUE rb_eIOError

Definition at line 2064 of file ruby.h.

◆ rb_eKeyError

RUBY_EXTERN VALUE rb_eKeyError

Definition at line 2062 of file ruby.h.

◆ rb_eLoadError

RUBY_EXTERN VALUE rb_eLoadError

Definition at line 2086 of file ruby.h.

◆ rb_eLocalJumpError

RUBY_EXTERN VALUE rb_eLocalJumpError

Definition at line 2076 of file ruby.h.

◆ rb_eMathDomainError

RUBY_EXTERN VALUE rb_eMathDomainError

Definition at line 2088 of file ruby.h.

◆ rb_eNameError

RUBY_EXTERN VALUE rb_eNameError

Definition at line 2084 of file ruby.h.

◆ rb_eNoMatchingPatternError

RUBY_EXTERN VALUE rb_eNoMatchingPatternError

Definition at line 2081 of file ruby.h.

◆ rb_eNoMemError

RUBY_EXTERN VALUE rb_eNoMemError

Definition at line 2073 of file ruby.h.

◆ rb_eNoMethodError

RUBY_EXTERN VALUE rb_eNoMethodError

Definition at line 2074 of file ruby.h.

◆ rb_eNotImpError

RUBY_EXTERN VALUE rb_eNotImpError

Definition at line 2072 of file ruby.h.

◆ rb_eRangeError

RUBY_EXTERN VALUE rb_eRangeError

Definition at line 2063 of file ruby.h.

◆ rb_eRegexpError

RUBY_EXTERN VALUE rb_eRegexpError

Definition at line 2078 of file ruby.h.

◆ rb_eRuntimeError

RUBY_EXTERN VALUE rb_eRuntimeError

Definition at line 2065 of file ruby.h.

◆ rb_eScriptError

RUBY_EXTERN VALUE rb_eScriptError

Definition at line 2083 of file ruby.h.

◆ rb_eSecurityError

RUBY_EXTERN VALUE rb_eSecurityError

Definition at line 2067 of file ruby.h.

◆ rb_eSignal

RUBY_EXTERN VALUE rb_eSignal

Definition at line 2056 of file ruby.h.

◆ rb_eStandardError

RUBY_EXTERN VALUE rb_eStandardError

Definition at line 2053 of file ruby.h.

◆ rb_eStopIteration

RUBY_EXTERN VALUE rb_eStopIteration

Definition at line 2061 of file ruby.h.

◆ rb_eSyntaxError

RUBY_EXTERN VALUE rb_eSyntaxError

Definition at line 2085 of file ruby.h.

◆ rb_eSysStackError

RUBY_EXTERN VALUE rb_eSysStackError

Definition at line 2077 of file ruby.h.

◆ rb_eSystemCallError

RUBY_EXTERN VALUE rb_eSystemCallError

Definition at line 2068 of file ruby.h.

◆ rb_eSystemExit

RUBY_EXTERN VALUE rb_eSystemExit

Definition at line 2054 of file ruby.h.

◆ rb_eThreadError

RUBY_EXTERN VALUE rb_eThreadError

Definition at line 2069 of file ruby.h.

◆ rb_eTypeError

RUBY_EXTERN VALUE rb_eTypeError

Definition at line 2070 of file ruby.h.

◆ rb_eZeroDivError

RUBY_EXTERN VALUE rb_eZeroDivError

Definition at line 2071 of file ruby.h.

◆ rb_gvar_undef_getter

rb_gvar_getter_t rb_gvar_undef_getter

Definition at line 1786 of file ruby.h.

◆ rb_gvar_undef_marker

rb_gvar_marker_t rb_gvar_undef_marker

Definition at line 1788 of file ruby.h.

◆ rb_gvar_undef_setter

rb_gvar_setter_t rb_gvar_undef_setter

Definition at line 1787 of file ruby.h.

◆ rb_gvar_val_getter

rb_gvar_getter_t rb_gvar_val_getter

Definition at line 1790 of file ruby.h.

◆ rb_gvar_val_marker

rb_gvar_marker_t rb_gvar_val_marker

Definition at line 1792 of file ruby.h.

◆ rb_gvar_val_setter

rb_gvar_setter_t rb_gvar_val_setter

Definition at line 1791 of file ruby.h.

◆ rb_gvar_var_getter

rb_gvar_getter_t rb_gvar_var_getter

Definition at line 1794 of file ruby.h.

◆ rb_gvar_var_marker

rb_gvar_marker_t rb_gvar_var_marker

Definition at line 1796 of file ruby.h.

◆ rb_gvar_var_setter

rb_gvar_setter_t rb_gvar_var_setter

Definition at line 1795 of file ruby.h.

◆ rb_mComparable

RUBY_EXTERN VALUE rb_mComparable

Definition at line 1999 of file ruby.h.

◆ rb_mEnumerable

RUBY_EXTERN VALUE rb_mEnumerable

Definition at line 2000 of file ruby.h.

◆ rb_mErrno

RUBY_EXTERN VALUE rb_mErrno

Definition at line 2001 of file ruby.h.

◆ rb_mFileTest

RUBY_EXTERN VALUE rb_mFileTest

Definition at line 2002 of file ruby.h.

◆ rb_mGC

Definition at line 2003 of file ruby.h.

◆ rb_mKernel

RUBY_EXTERN VALUE rb_mKernel

◆ rb_mMath

RUBY_EXTERN VALUE rb_mMath

Definition at line 2004 of file ruby.h.

◆ rb_mProcess

RUBY_EXTERN VALUE rb_mProcess

Definition at line 2005 of file ruby.h.

◆ rb_mWaitReadable

RUBY_EXTERN VALUE rb_mWaitReadable

Definition at line 2006 of file ruby.h.

Referenced by Init_ossl_ssl().

◆ rb_mWaitWritable

RUBY_EXTERN VALUE rb_mWaitWritable

Definition at line 2007 of file ruby.h.

Referenced by Init_ossl_ssl().

◆ rb_stderr

RUBY_EXTERN VALUE rb_stderr

Definition at line 2090 of file ruby.h.

Referenced by rb_f_abort().

◆ rb_stdin

RUBY_EXTERN VALUE rb_stdin

Definition at line 2090 of file ruby.h.

◆ rb_stdout

RUBY_EXTERN VALUE rb_stdout

Definition at line 2090 of file ruby.h.

◆ reserved [1/2]

void* rb_data_type_struct::reserved[1]

Definition at line 1155 of file ruby.h.

◆ reserved [2/2]

void* { ... } ::reserved[1]

Definition at line 1155 of file ruby.h.

◆ shared [1/2]

VALUE RString::shared

Definition at line 996 of file ruby.h.

Referenced by rb_str_tmp_frozen_release().

◆ shared [2/2]

VALUE { ... } ::shared

Definition at line 996 of file ruby.h.

◆ shared_root [1/2]

const { ... } ::shared_root

Definition at line 1060 of file ruby.h.

◆ shared_root [2/2]

const VALUE RArray::shared_root

Definition at line 1060 of file ruby.h.

◆ src

const VALUE RRegexp::src

Definition at line 1115 of file ruby.h.

◆ type

const rb_data_type_t* RTypedData::type

Definition at line 1170 of file ruby.h.

◆ typed_flag

VALUE RTypedData::typed_flag

Definition at line 1171 of file ruby.h.

◆ usecnt

unsigned long RRegexp::usecnt

Definition at line 1116 of file ruby.h.

◆ wrap_struct_name

const char* rb_data_type_struct::wrap_struct_name

Definition at line 1149 of file ruby.h.

ID
unsigned long ID
Definition: ruby.h:103
n
const char size_t n
Definition: rb_mjit_min_header-2.7.1.h:5417
VALUE
unsigned long VALUE
Definition: ruby.h:102
RUBY_ALLOCV_LIMIT
#define RUBY_ALLOCV_LIMIT
Definition: ruby.h:1737
strlen
size_t strlen(const char *)
rb_alloc_tmp_buffer
void * rb_alloc_tmp_buffer(volatile VALUE *store, long len) RUBY_ATTR_ALLOC_SIZE((2))
Definition: gc.c:10264
rb_intern2
ID rb_intern2(const char *, long)
Definition: symbol.c:653
str
char str[HTML_ESCAPE_MAX_LEN+1]
Definition: escape.c:18
v
int VALUE v
Definition: rb_mjit_min_header-2.7.1.h:12257
rb_rescue2
VALUE rb_rescue2(VALUE(*b_proc)(VALUE), VALUE data1, VALUE(*r_proc)(VALUE, VALUE), VALUE data2,...)
An equivalent of rescue clause.
Definition: eval.c:962
rb_eStandardError
VALUE rb_eStandardError
Definition: error.c:919
alloca
RUBY_SYMBOL_EXPORT_BEGIN void * alloca()
ruby::backward::cxxanyargs::type
VALUE type(ANYARGS)
ANYARGS-ed function type.
Definition: cxxanyargs.hpp:39