Sha256: 33f5136b33d93aceac933c6d22d264704dda48e7fdbb2de5d017fa92f07821bc
Contents?: true
Size: 1.22 KB
Versions: 9
Compression:
Stored size: 1.22 KB
Contents
/********************************************************************* * NAN - Native Abstractions for Node.js * * Copyright (c) 2015 NAN contributors * * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md> ********************************************************************/ #ifndef NAN_CONVERTERS_PRE_43_INL_H_ #define NAN_CONVERTERS_PRE_43_INL_H_ #define X(TYPE) \ imp::ToFactory<v8::TYPE>::return_t \ imp::ToFactory<v8::TYPE>::convert(v8::Local<v8::Value> val) { \ return MaybeLocal<v8::TYPE>(val->To ## TYPE()); \ } 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 Just<TYPE>(val->NAME ##Value()); \ } X(bool, Boolean) X(double, Number) X(int64_t, Integer) X(uint32_t, Uint32) X(int32_t, Int32) #undef X #endif // NAN_CONVERTERS_PRE_43_INL_H_
Version data entries
9 entries across 6 versions & 2 rubygems