summaryrefslogtreecommitdiff
path: root/eval_intern.h
diff options
context:
space:
mode:
-rw-r--r--eval_intern.h31
1 files changed, 30 insertions, 1 deletions
@@ -173,11 +173,28 @@ rb_ec_tag_jump(const rb_execution_context_t *ec, enum ruby_tag_type st)
#define CREF_FL_PUSHED_BY_EVAL IMEMO_FL_USER1
#define CREF_FL_OMOD_SHARED IMEMO_FL_USER2
static inline VALUE
CREF_CLASS(const rb_cref_t *cref)
{
- return cref->klass;
}
static inline rb_cref_t *
@@ -217,6 +234,18 @@ CREF_PUSHED_BY_EVAL_SET(rb_cref_t *cref)
}
static inline int
CREF_OMOD_SHARED(const rb_cref_t *cref)
{
return cref->flags & CREF_FL_OMOD_SHARED;