Skip to content

Commit

Permalink
replace mrb_toplevel_run() by mrb_top_run()
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Jan 7, 2016
1 parent 258cb20 commit f3cce24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ mrb_load_irep_cxt(mrb_state *mrb, const uint8_t *bin, mrbc_context *c)
proc = mrb_proc_new(mrb, irep);
mrb_irep_decref(mrb, irep);
if (c && c->no_exec) return mrb_obj_value(proc);
return mrb_toplevel_run(mrb, proc);
return mrb_top_run(mrb, proc, mrb_top_self(mrb), 0);
}

MRB_API mrb_value
Expand Down Expand Up @@ -697,7 +697,7 @@ mrb_load_irep_file_cxt(mrb_state *mrb, FILE* fp, mrbc_context *c)
mrb_irep_decref(mrb, irep);
if (c && c->dump_result) mrb_codedump_all(mrb, proc);
if (c && c->no_exec) return mrb_obj_value(proc);
val = mrb_toplevel_run(mrb, proc);
val = mrb_top_run(mrb, proc, mrb_top_self(mrb), 0);
return val;
}

Expand Down

0 comments on commit f3cce24

Please sign in to comment.