summaryrefslogtreecommitdiffhomepage
path: root/test/init_mrbtest.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-12-07 01:04:32 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2012-12-07 01:04:32 -0800
commitf521738953b9297a4d26e68ec42b7e9a22e5b442 (patch)
treec54451f210ebea9233229cc29ad82311e554ff63 /test/init_mrbtest.c
parentbd3b95cae66bf68a757a0dcdf05bcb05eb177391 (diff)
parentbef73cc54f044e16caf6bc1ba16ed0bf779c5ade (diff)
downloadmruby-f521738953b9297a4d26e68ec42b7e9a22e5b442.tar.gz
mruby-f521738953b9297a4d26e68ec42b7e9a22e5b442.zip
Merge pull request #479 from bovi/mrbgems
mrbgems
Diffstat (limited to 'test/init_mrbtest.c')
-rw-r--r--test/init_mrbtest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/init_mrbtest.c b/test/init_mrbtest.c
index e68c9d71a..47b14c325 100644
--- a/test/init_mrbtest.c
+++ b/test/init_mrbtest.c
@@ -5,11 +5,15 @@
#include "mruby/proc.h"
extern const char mrbtest_irep[];
+extern const char mrbgemtest_irep[];
void
mrb_init_mrbtest(mrb_state *mrb)
{
mrb_load_irep(mrb, mrbtest_irep);
+#ifdef ENABLE_GEMS
+ mrb_load_irep(mrb, mrbgemtest_irep);
+#endif
if (mrb->exc) {
mrb_p(mrb, mrb_obj_value(mrb->exc));
exit(0);