MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / host_edge_throw

Function host_edge_throw

compiler/src/main/abi_bridge.rs:315–318  ·  view source on GitHub ↗
(kind: u32, msg_ptr: *const u8, msg_len: u32)

Source from the content-addressed store, hash-verified

313// Stash a guest error for the host. Overwrites any pending error.
314#[unsafe(no_mangle)]
315pub unsafe extern "C" fn host_edge_throw(kind: u32, msg_ptr: *const u8, msg_len: u32) {
316 let msg = unsafe { safe_str_owned(msg_ptr, msg_len) };
317 with_runtime(|rt| rt.error_stash.set(kind, msg));
318}
319
320// Drain the most recent error.
321#[unsafe(no_mangle)]

Callers

nothing calls this directly

Calls 3

safe_str_ownedFunction · 0.85
with_runtimeFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected