Ruby: variable.h Source File

Ruby 4.0.6p0 (2026-07-14 revision 03b6d3f8898a28604fe6cb00eae3226b821168f4)

variable.h
1#ifndef RUBY_TOPLEVEL_VARIABLE_H /*-*-C-*-vi:se ft=c:*/
2#define RUBY_TOPLEVEL_VARIABLE_H
10
11/* per-object */
12
13#include "shape.h"
14
15void rb_copy_complex_ivars(VALUE dest, VALUE obj, shape_id_t src_shape_id, st_table *fields_table);
16 VALUE rb_obj_fields(VALUE obj, ID field_name);
17
18static inline VALUE
19rb_obj_fields_no_ractor_check(VALUE obj)
20{
21 return rb_obj_fields(obj, 0);
22}
23
24void rb_free_rb_global_tbl(void);
25void rb_free_generic_fields_tbl_(void);
26
27#endif /* RUBY_TOPLEVEL_VARIABLE_H */
ID
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
Definition value.h:52
VALUE
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40