MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / MaybeUnwrapTo

Function MaybeUnwrapTo

test/common/test_helper.h:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 */
57template <typename T>
58inline bool MaybeUnwrapTo(MaybeOrValue<T> maybe, T* out) {
59#if defined(NODE_ADDON_API_ENABLE_MAYBE)
60 return maybe.UnwrapTo(out);
61#else
62 *out = maybe;
63 return true;
64#endif
65}
66
67#ifdef NAPI_CPP_CUSTOM_NAMESPACE
68} // namespace NAPI_CPP_CUSTOM_NAMESPACE

Callers

nothing calls this directly

Calls 1

UnwrapToMethod · 0.80

Tested by

no test coverage detected