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

Function Unwrap

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

Source from the content-addressed store, hash-verified

94// (e.g., worker.terminate()), so callers should use UNWRAP_OR_RETURN, which
95// checks for that case.
96template <typename T> inline T* Unwrap(Napi::Value value) {
97 return T::Unwrap(value.As<Napi::Object>());
98}
99
100// Generates a random type tag when the addon is loaded. Type tags must not be
101// 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