diff options
| author | takkaw <[email protected]> | 2019-09-09 23:40:51 +0900 |
|---|---|---|
| committer | takkaw <[email protected]> | 2019-09-09 23:40:51 +0900 |
| commit | 3f70e3a81f3855f13c2f1a1b9e7864bd0f562117 (patch) | |
| tree | 78357aa07ce85cb94682f761ed764ec52f80b9b5 | |
| parent | e28451585db8828e18b4638b1513352efb98f86c (diff) | |
| download | mruby-3f70e3a81f3855f13c2f1a1b9e7864bd0f562117.tar.gz mruby-3f70e3a81f3855f13c2f1a1b9e7864bd0f562117.zip | |
change _ variable in mirb to be enable by default
| -rw-r--r-- | mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index fc85cdac0..45ead75f1 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -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 } |
