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

Function wasmtime_anyref_is_null

crates/c-api/include/wasmtime/anyref.h:30–32  ·  view source on GitHub ↗

\brief Helper function to return whether the provided `ref` points to a null `anyref` value. Note that `ref` itself should not be null as null is represented internally within a #wasmtime_anyref_t value.

Source from the content-addressed store, hash-verified

28/// Note that `ref` itself should not be null as null is represented internally
29/// within a #wasmtime_anyref_t value.
30static inline bool wasmtime_anyref_is_null(const wasmtime_anyref_t *ref) {
31 return ref->store_id == 0;
32}
33
34/**
35 * \brief Creates a new reference pointing to the same data that `anyref`

Callers 3

mainFunction · 0.85
TESTFunction · 0.85
anyrefMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68