Ruby: variable.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

variable.h
Go to the documentation of this file.
1#ifndef RUBY_TOPLEVEL_VARIABLE_H /*-*-C-*-vi:se ft=c:*/
2#define RUBY_TOPLEVEL_VARIABLE_H
12/* per-object */
13
14 struct gen_ivtbl {
15 uint32_t numiv;
16 VALUE ivptr[FLEX_ARY_LEN];
17};
18
19int rb_ivar_generic_ivtbl_lookup(VALUE obj, struct gen_ivtbl **);
20 VALUE rb_ivar_generic_lookup_with_index(VALUE obj, ID id, uint32_t index);
21
22#endif /* RUBY_TOPLEVEL_VARIABLE_H */
FLEX_ARY_LEN
#define FLEX_ARY_LEN
Definition: compilers.h:88
uint32_t
unsigned int uint32_t
Definition: sha2.h:101
gen_ivtbl
Definition: variable.h:14
gen_ivtbl::numiv
uint32_t numiv
Definition: variable.h:15
gen_ivtbl::ivptr
VALUE ivptr[FLEX_ARY_LEN]
Definition: variable.h:16
VALUE
unsigned long VALUE
Definition: value.h:38
ID
unsigned long ID
Definition: value.h:39
rb_ivar_generic_ivtbl_lookup
int rb_ivar_generic_ivtbl_lookup(VALUE obj, struct gen_ivtbl **)
Definition: variable.c:960
rb_ivar_generic_lookup_with_index
VALUE rb_ivar_generic_lookup_with_index(VALUE obj, ID id, uint32_t index)
Definition: variable.c:966