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

Function wasmtime_error_message

crates/c-api/src/error.rs:52–54  ·  view source on GitHub ↗
(error: &wasmtime_error_t, message: &mut wasm_name_t)

Source from the content-addressed store, hash-verified

50
51#[unsafe(no_mangle)]
52pub extern "C" fn wasmtime_error_message(error: &wasmtime_error_t, message: &mut wasm_name_t) {
53 message.set_buffer(format!("{:?}", error.error).into_bytes());
54}
55
56#[unsafe(no_mangle)]
57pub extern "C" fn wasmtime_error_exit_status(raw: &wasmtime_error_t, status: &mut i32) -> bool {

Callers 15

exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85
exit_with_errorFunction · 0.85

Calls 2

set_bufferMethod · 0.80
into_bytesMethod · 0.80

Tested by

no test coverage detected