void Init_RhoSupport() { rb_RhoModule = 0; rb_RhoJSON = 0; rb_RhoLogModule = 0; rb_RhoStdoutClass = 0; rb_RhoProfilerModule = 0; rb_RhoMessages = 0; rb_RhoError = 0; get_message_mid = 0; err_message_mid = 0; rb_define_global_function("require", rb_require_compiled, 1); #ifndef RHODES_EMULATOR rb_define_global_function("eval_compiled_file", rb_f_eval_compiled, -1); #else rb_define_global_function("__rhoGetRhodesDir", __rhoGetRhodesDir, 0); #endif rb_define_global_function("__rhoGetCurrentDir", __rhoGetCurrentDir, 0); rb_define_global_function("__rhoGetRuntimeDir", __rhoGetRuntimeDir, 0); rb_define_global_function("__rhoGetUserDir", __rhoGetUserDir, 0); rb_define_global_function("__rhoGetDBDir", __rhoGetDBDir, 0); rb_define_global_function("load", rb_load_compiled, 1); rb_define_global_function("__rhoGetCallbackObject", __rhoGetCallbackObject, 1); rb_define_method(rb_mKernel, "rhom_init", rb_obj_rhom_init, 1); Init_RhoLog(); Init_RhoBlobs(); Init_RhoJSON(); }
void Init_RhoSupport() { rb_define_global_function("require", rb_require_compiled, 1); rb_define_global_function("eval_compiled_file", rb_f_eval_compiled, -1); rb_define_global_function("__rhoGetCurrentDir", __rhoGetCurrentDir, 0); rb_define_global_function("load", rb_require_compiled, 1); Init_RhoLog(); Init_RhoBlobs(); }
void Init_RhoSupport() { rb_define_global_function("require", rb_require_compiled, 1); rb_define_global_function("eval_compiled_file", rb_f_eval_compiled, -1); rb_define_global_function("__rhoGetCurrentDir", __rhoGetCurrentDir, 0); rb_define_global_function("load", rb_require_compiled, 1); rb_define_global_function("__rhoGetCallbackObject", __rhoGetCallbackObject, 1); rb_define_method(rb_mKernel, "rhom_init", rb_obj_rhom_init, 1); Init_RhoLog(); Init_RhoBlobs(); }