2009-12-13 14:44:28 -05:00
|
|
|
#ifndef __converters_h__
|
|
|
|
#define __converters_h__
|
|
|
|
|
|
|
|
#include "convert_ruby.h"
|
|
|
|
#include "convert_string.h"
|
|
|
|
#include "convert_v8.h"
|
2009-12-25 22:16:11 -05:00
|
|
|
#include <cstring>
|
2009-12-13 14:44:28 -05:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2009-12-25 22:16:11 -05:00
|
|
|
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);
|
2009-12-20 12:31:02 -05:00
|
|
|
|
2009-12-13 14:44:28 -05:00
|
|
|
#endif
|