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

7 lines
219 B
C++
Raw Normal View History

2010-05-08 13:58:43 -04:00
#include "rr.h"
VALUE rr_define_class(const char *name, VALUE superclass) {
2010-05-08 13:58:43 -04:00
VALUE V8 = rb_define_module("V8");
VALUE V8_C = rb_define_module_under(V8, "C");
return rb_define_class_under(V8_C, name, superclass);
2010-05-08 13:58:43 -04:00
}