Sha256: 338cb1c40feec926966e8e7a47740cedf78b11e6488fed2cdc097faa796ab72d

Contents?: true

Size: 1.22 KB

Versions: 12

Compression:

Stored size: 1.22 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_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

12 entries across 11 versions & 3 rubygems

Version Path
node-compiler-0.9.1 vendor/node/test/gc/node_modules/nan/nan_converters_pre_43_inl.h
node-compiler-0.9.0 vendor/node-v7.2.1/test/gc/node_modules/nan/nan_converters_pre_43_inl.h
node-compiler-0.8.0 vendor/node-v7.2.0/test/gc/node_modules/nan/nan_converters_pre_43_inl.h
node-compiler-0.7.0 vendor/node-v6.9.1/test/gc/node_modules/nan/nan_converters_pre_43_inl.h
node-compiler-0.7.0 vendor/node-v7.1.0/test/gc/node_modules/nan/nan_converters_pre_43_inl.h
brwy_rails-0.0.6 test/dummy/node_modules/nan/nan_converters_pre_43_inl.h
brwy_rails-0.0.5 test/dummy/node_modules/nan/nan_converters_pre_43_inl.h
blackboard-3.1.9 lib/site_template/node_modules/nan/nan_converters_pre_43_inl.h
brwy_rails-0.0.4 test/dummy/node_modules/nan/nan_converters_pre_43_inl.h
brwy_rails-0.0.3 test/dummy/node_modules/nan/nan_converters_pre_43_inl.h
brwy_rails-0.0.2 test/dummy/node_modules/nan/nan_converters_pre_43_inl.h
brwy_rails-0.0.1 test/dummy/node_modules/nan/nan_converters_pre_43_inl.h