MCPcopy Create free account
hub / github.com/WebAssembly/wasm-c-api / release_ref

Method release_ref

include/wasm.hh:562–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560 template<class T> inline auto get() const -> T;
561
562 auto release_ref() -> own<Ref> {
563 assert(is_ref());
564 auto ref = impl_.ref;
565 impl_.ref = nullptr;
566 return own<Ref>(ref);
567 }
568
569 auto copy() const -> Val {
570 if (is_ref() && impl_.ref != nullptr) {

Callers 6

call_v_rFunction · 0.80
call_r_rFunction · 0.80
call_i_rFunction · 0.80
runFunction · 0.80
release_valFunction · 0.80
~borrowed_valMethod · 0.80

Calls 1

is_refFunction · 0.85

Tested by

no test coverage detected