Initialize ruby stack.
@@ -424,6 +424,10 @@ loader_impl_data rb_loader_impl_initialize(loader_impl impl, configuration confi
log_copy(host->log);
+ /* Initialize Ruby */
+ {
+ RUBY_INIT_STACK;
+
ruby_init();
ruby_init_loadpath();
@@ -443,6 +447,7 @@ loader_impl_data rb_loader_impl_initialize(loader_impl impl, configuration confi
}
log_write("metacall", LOG_LEVEL_DEBUG, "Ruby loader initialized correctly");
+ }
return (loader_impl_data)&rb_loader_impl_unused;
}
