1#ifndef INTERNAL_OBJECT_H
2#define INTERNAL_OBJECT_H
17NORETURN(
void rb_undefined_alloc(
VALUE klass));
18double rb_num_to_dbl(
VALUE val);
23VALUE rb_check_convert_type_with_id(
VALUE,
int,
const char*,
ID);
24int rb_bool_expected(
VALUE,
const char *,
int raise);
25static inline void RBASIC_CLEAR_CLASS(
VALUE obj);
26static inline void RBASIC_SET_CLASS_RAW(
VALUE obj,
VALUE klass);
27static inline void RBASIC_SET_CLASS(
VALUE obj,
VALUE klass);
29RUBY_SYMBOL_EXPORT_BEGIN
31int rb_opts_exception_p(
VALUE opts,
int default_value);
39VALUE rb_convert_type_with_id(
VALUE v,
int t,
const char* nam,
ID mid);
47 *(
VALUE *)ptr = klass;
51RBASIC_CLEAR_CLASS(
VALUE obj)
53 RBASIC_SET_CLASS_RAW(obj, 0);
60 RBASIC_SET_CLASS_RAW(obj, klass);
size_t rb_obj_embedded_size(uint32_t numiv)
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.
static VALUE RBASIC_CLASS(VALUE obj)
Queries the class of an object.
#define RBASIC(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.