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

21 lines
No EOL
623 B
C++

#ifndef __converters_h__
#define __converters_h__
#include "convert_ruby.h"
#include "convert_string.h"
#include "convert_v8.h"
#include <cstring>
typedef RubyValueSource<V8LocalDest, v8::Local<v8::Value> > convert_rb_to_v8_t;
typedef V8HandleSource<RubyValueDest, VALUE> convert_v8_to_rb_t;
typedef RubyValueSource<StringDest, std::string> convert_rb_to_string_t;
typedef V8HandleSource<StringDest, std::string> convert_v8_to_string_t;
VALUE V82RB(v8::Handle<v8::Value>& value);
v8::Local<v8::Value> RB2V8(VALUE value);
std::string RB2String(VALUE value);
std::string V82String(v8::Handle<v8::Value>& value);
#endif