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

Function wasm_extern_as_func

crates/c-api/src/extern.rs:38–40  ·  view source on GitHub ↗
(e: &wasm_extern_t)

Source from the content-addressed store, hash-verified

36
37#[unsafe(no_mangle)]
38pub extern "C" fn wasm_extern_as_func(e: &wasm_extern_t) -> Option<&wasm_func_t> {
39 wasm_func_t::try_from(e)
40}
41
42#[unsafe(no_mangle)]
43pub extern "C" fn wasm_extern_as_func_const(e: &wasm_extern_t) -> Option<&wasm_func_t> {

Callers 2

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected