1#ifndef INTERNAL_OBJECT_H
2#define INTERNAL_OBJECT_H
16NORETURN(
void rb_undefined_alloc(
VALUE klass));
17double rb_num_to_dbl(
VALUE val);
20VALUE rb_check_convert_type_with_id(
VALUE,
int,
const char*,
ID);
21int rb_bool_expected(
VALUE,
const char *,
int raise);
22static inline void RBASIC_CLEAR_CLASS(
VALUE obj);
23static inline void RBASIC_SET_CLASS_RAW(
VALUE obj,
VALUE klass);
24static inline void RBASIC_SET_CLASS(
VALUE obj,
VALUE klass);
26RUBY_SYMBOL_EXPORT_BEGIN
28int rb_opts_exception_p(
VALUE opts,
int default_value);
36VALUE rb_convert_type_with_id(
VALUE v,
int t,
const char* nam,
ID mid);
44 *(
VALUE *)ptr = klass;
48RBASIC_CLEAR_CLASS(
VALUE obj)
50 RBASIC_SET_CLASS_RAW(obj, 0);
57 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.