1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

no need to hang a reference to the V8 module

This commit is contained in:
Charles Lowell 2010-05-10 08:06:07 -05:00
parent 01dcb216a6
commit ae6cac7339

View file

@ -11,21 +11,14 @@
#include <stdio.h>
extern "C" {
/**
* ruby init method for the extension
*/
void Init_v8();
}
VALUE rb_mModule;
extern "C" {
void Init_v8() {
rb_mModule = rb_define_module("V8");
V8_To = rb_define_module_under(rb_mModule, "To");
void Init_v8() {
V8_To = rb_define_module_under(rb_define_module("V8"), "To");
rr_init_cxt();
rr_init_str();
rr_init_script();