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

commit to branch before switching back to master to make it compile.

This commit is contained in:
Bill Robertson 2009-12-25 22:16:11 -05:00 committed by Charles Lowell
parent 94e4c62061
commit 1b85fd26d8
2 changed files with 25 additions and 4 deletions

View file

@ -1,4 +1,21 @@
#include "converters.h"
convert_v8_to_rb_t V82RB;
convert_rb_to_v8_t RB2V8;
VALUE V82RB(v8::Handle<v8::Value>& value) {
convert_v8_to_rb_t convert;
return convert(value);
}
v8::Local<v8::Value> RB2V8(VALUE value) {
convert_rb_to_v8_t convert;
return convert(value);
}
std::string RB2String(VALUE value) {
convert_rb_to_string_t convert;
return convert(value);
}
std::string V82String(v8::Handle<v8::Value>& value) {
convert_v8_to_string_t convert;
return convert(value);
}

View file

@ -4,6 +4,7 @@
#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;
@ -11,7 +12,10 @@ 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;
extern convert_v8_to_rb_t V82RB;
extern convert_rb_to_v8_t RB2V8;
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