MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / Unwrap

Function Unwrap

src/util/helpers.cpp:94–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92// value produced by our own code), because napi_unwrap does not check the
93// object's type.
94template <typename T> inline T* Unwrap(Napi::Value value) {
95 return T::Unwrap(value.As<Napi::Object>());
96}
97
98// Generates a random type tag when the addon is loaded. Type tags must not be
99// hardcoded, because multiple copies (or even different versions) of the addon

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected