MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / ~val

Function ~val

system/include/emscripten/val.h:383–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381 val(val& v) : val(static_cast<const val&>(v)) {}
382
383 ~val() {
384 if (uses_ref_count()) {
385 internal::_emval_decref(as_handle());
386 handle = 0;
387 }
388 }
389
390 EM_VAL as_handle() const {
391#ifdef __EMSCRIPTEN_PTHREADS__

Callers

nothing calls this directly

Calls 2

uses_ref_countFunction · 0.85
as_handleFunction · 0.85

Tested by

no test coverage detected