Commit 3f70e3a8 authored by takkaw's avatar takkaw

change _ variable in mirb to be enable by default

parent e2845158
......@@ -406,7 +406,7 @@ ctrl_c_handler(int signo)
}
#endif
#ifdef ENABLE_MIRB_UNDERSCORE
#ifndef DISABLE_MIRB_UNDERSCORE
void decl_lv_underscore(mrb_state *mrb, mrbc_context *cxt)
{
struct RProc *proc;
......@@ -491,7 +491,7 @@ main(int argc, char **argv)
cxt = mrbc_context_new(mrb);
#ifdef ENABLE_MIRB_UNDERSCORE
#ifndef DISABLE_MIRB_UNDERSCORE
decl_lv_underscore(mrb, cxt);
#endif
......@@ -667,7 +667,7 @@ main(int argc, char **argv)
result = mrb_any_to_s(mrb, result);
}
p(mrb, result, 1);
#ifdef ENABLE_MIRB_UNDERSCORE
#ifndef DISABLE_MIRB_UNDERSCORE
*(mrb->c->stack + 1) = result;
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment