summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2012-12-05 02:48:29 +0900
committerYukihiro Matz Matsumoto <[email protected]>2012-12-05 02:48:29 +0900
commitb8e5a570479a2e45d8746d85df15f84b619466d6 (patch)
tree65fa946f7a69aacf0b7adfa47c7dff3d4c71bd6e /test
parentc7a2af380fca16db5f44961b221c5b2cfe69a503 (diff)
downloadmruby-b8e5a570479a2e45d8746d85df15f84b619466d6.tar.gz
mruby-b8e5a570479a2e45d8746d85df15f84b619466d6.zip
rename mrb_load_irep etc. for naming consistency
Diffstat (limited to 'test')
-rw-r--r--test/init_mrbtest.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/init_mrbtest.c b/test/init_mrbtest.c
index b9f09dd2f..e68c9d71a 100644
--- a/test/init_mrbtest.c
+++ b/test/init_mrbtest.c
@@ -9,9 +9,7 @@ extern const char mrbtest_irep[];
void
mrb_init_mrbtest(mrb_state *mrb)
{
- int n = mrb_read_irep(mrb, mrbtest_irep);
-
- mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb));
+ mrb_load_irep(mrb, mrbtest_irep);
if (mrb->exc) {
mrb_p(mrb, mrb_obj_value(mrb->exc));
exit(0);