17 CONST_DEPRECATED = 0x100,
19 CONST_VISIBILITY_MASK = 0xff,
25 #define RB_CONST_PRIVATE_P(ce) \
26 (((ce)->flag & CONST_VISIBILITY_MASK) == CONST_PRIVATE)
27 #define RB_CONST_PUBLIC_P(ce) \
28 (((ce)->flag & CONST_VISIBILITY_MASK) == CONST_PUBLIC)
30 #define RB_CONST_DEPRECATED_P(ce) \
31 ((ce)->flag & CONST_DEPRECATED)
42 VALUE rb_mod_deprecate_constant(
int argc,
const VALUE *argv,
VALUE obj);
46 int rb_autoloading_value(
VALUE mod,
ID id,
VALUE *value, rb_const_flag_t *flag);
50 int rb_public_const_defined_from(
VALUE klass,
ID id);
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
uintptr_t VALUE
Type that represents a Ruby object.