Sha256: 16a79a98a5ac33a0ba8d2adf3ed13e09f8b68d4c86fa257b65b23a173bde2dc6
Contents?: true
Size: 1.21 KB
Versions: 12
Compression:
Stored size: 1.21 KB
Contents
/********************************************************************* * NAN - Native Abstractions for Node.js * * Copyright (c) 2016 NAN contributors * * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md> ********************************************************************/ #ifndef NAN_CONVERTERS_43_INL_H_ #define NAN_CONVERTERS_43_INL_H_ #define X(TYPE) \ imp::ToFactory<v8::TYPE>::return_t \ imp::ToFactory<v8::TYPE>::convert(v8::Local<v8::Value> val) { \ return val->To ## TYPE(GetCurrentContext()); \ } X(Boolean) X(Number) X(String) X(Object) X(Integer) X(Uint32) X(Int32) #undef X #define X(TYPE, NAME) \ imp::ToFactory<TYPE>::return_t \ imp::ToFactory<TYPE>::convert(v8::Local<v8::Value> val) { \ return val->NAME ## Value(GetCurrentContext()); \ } X(bool, Boolean) X(double, Number) X(int64_t, Integer) X(uint32_t, Uint32) X(int32_t, Int32) #undef X #endif // NAN_CONVERTERS_43_INL_H_
Version data entries
12 entries across 11 versions & 3 rubygems