mirror of
https://github.com/electron/electron.git
synced 2026-02-13 08:35:02 -05:00
Enable converting void*.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user