1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/ext/v8/rr.h
2010-05-20 12:07:32 +03:00

11 lines
No EOL
410 B
C

#ifndef _THE_RUBY_RACER_
#define _THE_RUBY_RACER_
#include <ruby.h>
#define RR_DEFINE_METHOD(klass, name, impl, argc) rb_define_method(klass, name, (VALUE(*)(...))impl, argc)
#define RR_DEFINE_SINGLETON_METHOD(object, name, impl, argc) rb_define_singleton_method(object, name, (VALUE(*)(...))impl, argc)
#define RR_NATIVE_CLASS(name) rb_define_class_under(rb_eval_string("V8::C"), name, rb_cObject)
#endif