summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index e438b9c7b8..2cdb45f7b9 100644
--- a/main.c
+++ b/main.c
@@ -33,6 +33,9 @@ main(int argc, char **argv, char **envp)
{
RUBY_INIT_STACK;
ruby_init();
+#ifdef RUBY_MAIN_INIT
+ RUBY_MAIN_INIT();
+#endif
return ruby_run_node(ruby_options(argc, argv));
}
}