mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
shared header file rr.h
This commit is contained in:
parent
abb23b2fac
commit
afc0f62cf4
1 changed files with 11 additions and 0 deletions
11
ext/v8/rr.h
Normal file
11
ext/v8/rr.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#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
|
Loading…
Add table
Reference in a new issue