summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler/core
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-01-07 22:36:29 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-01-07 22:36:29 +0900
commitf7afe1d82a6237879b3727135e244b420f9b61fa (patch)
treed870ce5481e12bb8ebc5fe966c1302c78323f267 /mrbgems/mruby-compiler/core
parent725b3ca5a74023947d10049eb54576163a781098 (diff)
downloadmruby-f7afe1d82a6237879b3727135e244b420f9b61fa.tar.gz
mruby-f7afe1d82a6237879b3727135e244b420f9b61fa.zip
change mrb_run related API names; compatibility macros provided
Diffstat (limited to 'mrbgems/mruby-compiler/core')
-rw-r--r--mrbgems/mruby-compiler/core/parse.y2
1 files changed, 1 insertions, 1 deletions
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;
}