MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / reset

Method reset

crates/c-api/include/wasm.hh:541–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539 template<class T> inline static auto make(own<T>&& x) -> Val;
540
541 void reset() {
542 if (is_ref() && impl_.ref) {
543 destroyer()(impl_.ref);
544 impl_.ref = nullptr;
545 }
546 }
547
548 void reset(Val& that) {
549 reset();

Callers

nothing calls this directly

Calls 2

is_refFunction · 0.85
destroyerClass · 0.85

Tested by

no test coverage detected