diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-04-25 11:50:03 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-04-25 11:50:03 +0900 |
| commit | 86946043c3b42840a58bb11a9b2dd57ac5be873d (patch) | |
| tree | 472ff79a9f59cb753969e175012989093c4cce97 /tools | |
| parent | 7edd7762b026258f66815a6593a7f71313f7e3e9 (diff) | |
| download | mruby-86946043c3b42840a58bb11a9b2dd57ac5be873d.tar.gz mruby-86946043c3b42840a58bb11a9b2dd57ac5be873d.zip | |
disclose mrb_top_self() and use it in mruby.c
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mruby/mruby.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mruby/mruby.c b/tools/mruby/mruby.c index aea2a7cd6..cdfe47460 100644 --- a/tools/mruby/mruby.c +++ b/tools/mruby/mruby.c @@ -130,9 +130,9 @@ main(int argc, char **argv) codedump_all(mrb, n); if (!args.check_syntax) { - mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_nil_value()); + mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb)); if (mrb->exc) { - mrb_funcall(mrb, mrb_nil_value(), "p", 1, mrb_obj_value(mrb->exc)); + mrb_p(mrb, mrb_obj_value(mrb->exc)); } } } |
