summaryrefslogtreecommitdiffhomepage
path: root/src/init.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-17 23:36:34 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-17 23:36:34 +0900
commitede3049f33f8c6cdb703784619fb4143bfe3b441 (patch)
tree6603c359fab9b0d3090ee45ef77c75eea6973604 /src/init.c
parent8399d936a233429d748888ca17a27f53a1ae3e48 (diff)
downloadmruby-ede3049f33f8c6cdb703784619fb4143bfe3b441.tar.gz
mruby-ede3049f33f8c6cdb703784619fb4143bfe3b441.zip
allow disabling Struct class
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init.c b/src/init.c
index a515ee880..e2ab62339 100644
--- a/src/init.c
+++ b/src/init.c
@@ -49,7 +49,9 @@ mrb_init_core(mrb_state *mrb)
mrb_init_hash(mrb);
mrb_init_numeric(mrb);
mrb_init_range(mrb);
+#ifdef ENABLE_STRUCT
mrb_init_struct(mrb);
+#endif
mrb_init_gc(mrb);
#ifdef ENABLE_REGEXP
mrb_init_regexp(mrb);