summaryrefslogtreecommitdiffhomepage
path: root/test/init_mrbtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/init_mrbtest.c')
-rw-r--r--test/init_mrbtest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/init_mrbtest.c b/test/init_mrbtest.c
index 569fde302..6b2219b6f 100644
--- a/test/init_mrbtest.c
+++ b/test/init_mrbtest.c
@@ -5,14 +5,15 @@
#include "mruby/proc.h"
extern const char mrbtest_irep[];
-extern const char mrbgemtest_irep[];
+
+void mrbgemtest_init(mrb_state* mrb);
void
mrb_init_mrbtest(mrb_state *mrb)
{
mrb_load_irep(mrb, mrbtest_irep);
#ifndef DISABLE_GEMS
- mrb_load_irep(mrb, mrbgemtest_irep);
+ mrbgemtest_init(mrb);
#endif
if (mrb->exc) {
mrb_p(mrb, mrb_obj_value(mrb->exc));