1#ifndef INTERNAL_OBJECT_H
2#define INTERNAL_OBJECT_H
12#include "internal/class.h"
14#ifdef ROBJECT_IV_INDEX_TBL
15# undef ROBJECT_IV_INDEX_TBL
20NORETURN(
void rb_undefined_alloc(
VALUE klass));
21double rb_num_to_dbl(
VALUE val);
24VALUE rb_check_convert_type_with_id(
VALUE,
int,
const char*,
ID);
25int rb_bool_expected(
VALUE,
const char *);
26static inline void RBASIC_CLEAR_CLASS(
VALUE obj);
27static inline void RBASIC_SET_CLASS_RAW(
VALUE obj,
VALUE klass);
28static inline void RBASIC_SET_CLASS(
VALUE obj,
VALUE klass);
29static inline struct st_table *ROBJECT_IV_INDEX_TBL_inline(
VALUE obj);
31RUBY_SYMBOL_EXPORT_BEGIN
33int rb_opts_exception_p(
VALUE opts,
int default_value);
36MJIT_SYMBOL_EXPORT_BEGIN
42VALUE rb_convert_type_with_id(
VALUE v,
int t,
const char* nam,
ID mid);
51 *(
VALUE *)ptr = klass;
55RBASIC_CLEAR_CLASS(
VALUE obj)
57 RBASIC_SET_CLASS_RAW(obj, 0);
64 RBASIC_SET_CLASS_RAW(obj, klass);
70ROBJECT_IV_INDEX_TBL_inline(
VALUE obj)
74 return RCLASS_IV_INDEX_TBL(klass);
78 return ptr->as.heap.iv_index_tbl;
81#define ROBJECT_IV_INDEX_TBL ROBJECT_IV_INDEX_TBL_inline
static bool RB_FL_ANY_RAW(VALUE obj, VALUE flags)
This is an implenentation detail of RB_FL_ANY().
VALUE rb_obj_class(VALUE obj)
Queries the class of an object.
VALUE rb_class_search_ancestor(VALUE klass, VALUE super)
Internal header for Object.
#define RB_OBJ_WRITTEN(old, oldv, young)
Identical to RB_OBJ_WRITE(), except it doesn't write any values, but only a WB declaration.
#define RBIMPL_ATTR_PURE()
Wraps (or simulates) __attribute__((pure))
static VALUE RBASIC_CLASS(VALUE obj)
Queries the class of an object.
#define RBASIC(obj)
Convenient casting macro.
#define ROBJECT(obj)
Convenient casting macro.
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
uintptr_t VALUE
Type that represents a Ruby object.