Enable converting void*.

This commit is contained in:
Cheng Zhao 2014-04-16 14:56:33 +08:00
parent d0bf1a842f
commit 213ac43721

View file

@ -16,6 +16,13 @@ namespace mate {
template<typename T, typename Enable = void>
struct Converter {};
template<>
struct Converter<void*> {
static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate, void* val) {
return v8::Undefined();
}
};
template<>
struct Converter<bool> {
static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,