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

Function store_err

crates/c-api/src/func.rs:419–426  ·  view source on GitHub ↗
(err: Error, trap_ret: &mut *mut wasm_trap_t)

Source from the content-addressed store, hash-verified

417}
418
419fn store_err(err: Error, trap_ret: &mut *mut wasm_trap_t) -> Option<Box<wasmtime_error_t>> {
420 if is_trap_like_impl(&err) {
421 *trap_ret = Box::into_raw(Box::new(wasm_trap_t::new(err)));
422 None
423 } else {
424 Some(Box::new(wasmtime_error_t::from(err)))
425 }
426}
427
428#[unsafe(no_mangle)]
429pub extern "C" fn wasmtime_func_type(

Callers 2

wasmtime_func_callFunction · 0.85

Calls 3

is_trap_like_implFunction · 0.85
fromFunction · 0.85
newFunction · 0.50

Tested by

no test coverage detected