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:
parent
94e4c62061
commit
1b85fd26d8
2 changed files with 25 additions and 4 deletions
|
@ -1,4 +1,21 @@
|
||||||
#include "converters.h"
|
#include "converters.h"
|
||||||
|
|
||||||
convert_v8_to_rb_t V82RB;
|
VALUE V82RB(v8::Handle<v8::Value>& value) {
|
||||||
convert_rb_to_v8_t RB2V8;
|
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);
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
#include "convert_ruby.h"
|
#include "convert_ruby.h"
|
||||||
#include "convert_string.h"
|
#include "convert_string.h"
|
||||||
#include "convert_v8.h"
|
#include "convert_v8.h"
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
typedef RubyValueSource<V8LocalDest, v8::Local<v8::Value> > convert_rb_to_v8_t;
|
typedef RubyValueSource<V8LocalDest, v8::Local<v8::Value> > convert_rb_to_v8_t;
|
||||||
typedef V8HandleSource<RubyValueDest, VALUE> convert_v8_to_rb_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 RubyValueSource<StringDest, std::string> convert_rb_to_string_t;
|
||||||
typedef V8HandleSource<StringDest, std::string> convert_v8_to_string_t;
|
typedef V8HandleSource<StringDest, std::string> convert_v8_to_string_t;
|
||||||
|
|
||||||
extern convert_v8_to_rb_t V82RB;
|
VALUE V82RB(v8::Handle<v8::Value>& value);
|
||||||
extern convert_rb_to_v8_t RB2V8;
|
v8::Local<v8::Value> RB2V8(VALUE value);
|
||||||
|
|
||||||
|
std::string RB2String(VALUE value);
|
||||||
|
std::string V82String(v8::Handle<v8::Value>& value);
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Add table
Add a link
Reference in a new issue