git.schokokeks.org
Repositories
Help
Report an Issue
wirc-backend.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
c972b0c
Branches
Tags
master
wirc-backend.git
lib
node
node_modules
nan
nan_converters_pre_43_inl.h
[ini]
Christian Fraß
commited
c972b0c
at 2021-11-18 23:53:54
nan_converters_pre_43_inl.h
Blame
History
Raw
/********************************************************************* * NAN - Native Abstractions for Node.js * * Copyright (c) 2018 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 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(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_