diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-01-07 22:36:29 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-01-07 22:36:29 +0900 |
| commit | f7afe1d82a6237879b3727135e244b420f9b61fa (patch) | |
| tree | d870ce5481e12bb8ebc5fe966c1302c78323f267 /mrbgems | |
| parent | 725b3ca5a74023947d10049eb54576163a781098 (diff) | |
| download | mruby-f7afe1d82a6237879b3727135e244b420f9b61fa.tar.gz mruby-f7afe1d82a6237879b3727135e244b420f9b61fa.zip | |
change mrb_run related API names; compatibility macros provided
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 2 | ||||
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index c8975599f..55bbc513b 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -546,7 +546,7 @@ done: } /* pass a proc for evaulation */ /* evaluate the bytecode */ - result = mrb_context_run(mrb, + result = mrb_vm_run(mrb, proc, mrb_top_self(mrb), stack_keep); diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index b08775cc7..301d1bf65 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -5634,7 +5634,7 @@ load_exec(mrb_state *mrb, parser_state *p, mrbc_context *c) if (mrb->c->ci) { mrb->c->ci->target_class = target; } - v = mrb_toplevel_run_keep(mrb, proc, keep); + v = mrb_top_run(mrb, proc, mrb_top_self(mrb), keep); if (mrb->exc) return mrb_nil_value(); return v; } |
