(kind: u32, msg_ptr: *const u8, msg_len: u32)
| 313 | // Stash a guest error for the host. Overwrites any pending error. |
| 314 | #[unsafe(no_mangle)] |
| 315 | pub 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)] |
nothing calls this directly
no test coverage detected