(
mut store: WasmtimeStoreContextMut<'_>,
out: &mut MaybeUninit<wasmtime_exnref_t>,
)
| 96 | |
| 97 | #[unsafe(no_mangle)] |
| 98 | pub extern "C" fn wasmtime_context_take_exception( |
| 99 | mut store: WasmtimeStoreContextMut<'_>, |
| 100 | out: &mut MaybeUninit<wasmtime_exnref_t>, |
| 101 | ) -> bool { |
| 102 | match store.take_pending_exception() { |
| 103 | Some(rooted) => { |
| 104 | let owned = rooted.to_owned_rooted(&mut store).unwrap(); |
| 105 | out.write(owned.into()); |
| 106 | true |
| 107 | } |
| 108 | None => false, |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | #[unsafe(no_mangle)] |
| 113 | pub extern "C" fn wasmtime_context_has_exception(store: WasmtimeStoreContextMut<'_>) -> bool { |
no test coverage detected