summaryrefslogtreecommitdiffhomepage
path: root/test/init_mrbtest.c
diff options
context:
space:
mode:
authorYuichiro MASUI <[email protected]>2012-12-22 01:38:06 +0900
committerYuichiro MASUI <[email protected]>2012-12-22 01:38:06 +0900
commitdee0b2283c180c4e2584ff27dcb241a80fb7cfc2 (patch)
tree9e1a6e1f1c3cf399aa51ce88d328a24fe62bb227 /test/init_mrbtest.c
parent429359819a9a3155984c134f62976a42d314244c (diff)
downloadmruby-dee0b2283c180c4e2584ff27dcb241a80fb7cfc2.tar.gz
mruby-dee0b2283c180c4e2584ff27dcb241a80fb7cfc2.zip
Add MRUBY_CFLAGS / MRUBY_LDFLAGS to mrbgems
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));