diff options
-rw-r--r-- | compile.c | 4 | ||||
-rw-r--r-- | eval.c | 2 | ||||
-rw-r--r-- | iseq.h | 2 | ||||
-rw-r--r-- | vm_opts.h | 1 |
4 files changed, 4 insertions, 5 deletions
@@ -732,7 +732,7 @@ rb_iseq_compile_node(rb_iseq_t *iseq, const NODE *node) ADD_INSN(ret, ISEQ_COMPILE_DATA(iseq)->last_line, leave); } -#if SUPPORT_JOKE +#if OPT_SUPPORT_JOKE if (ISEQ_COMPILE_DATA(iseq)->labels_table) { st_table *labels_table = ISEQ_COMPILE_DATA(iseq)->labels_table; ISEQ_COMPILE_DATA(iseq)->labels_table = 0; @@ -6570,7 +6570,7 @@ compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, in INIT_ANCHOR(recv); INIT_ANCHOR(args); -#if SUPPORT_JOKE +#if OPT_SUPPORT_JOKE if (nd_type(node) == NODE_VCALL) { ID id_bitblt; ID id_answer; @@ -478,7 +478,7 @@ static VALUE get_ec_errinfo(const rb_execution_context_t *ec); static VALUE exc_setup_cause(VALUE exc, VALUE cause) { -#if SUPPORT_JOKE +#if OPT_SUPPORT_JOKE if (NIL_P(cause)) { ID id_true_cause; CONST_ID(id_true_cause, "true_cause"); @@ -109,7 +109,7 @@ struct iseq_compile_data { unsigned int ci_kw_index; const rb_compile_option_t *option; struct rb_id_table *ivar_cache_table; -#if SUPPORT_JOKE +#if OPT_SUPPORT_JOKE st_table *labels_table; #endif }; @@ -62,7 +62,6 @@ /* misc */ #define OPT_SUPPORT_JOKE 0 -#define SUPPORT_JOKE OPT_SUPPORT_JOKE #ifndef VM_COLLECT_USAGE_DETAILS #define VM_COLLECT_USAGE_DETAILS 0 |