(
mut store: WasmtimeStoreContextMut<'_>,
exn: &wasmtime_exnref_t,
index: usize,
val_ret: &mut MaybeUninit<wasmtime_val_t>,
)
| 69 | |
| 70 | #[unsafe(no_mangle)] |
| 71 | pub unsafe extern "C" fn wasmtime_exnref_field( |
| 72 | mut store: WasmtimeStoreContextMut<'_>, |
| 73 | exn: &wasmtime_exnref_t, |
| 74 | index: usize, |
| 75 | val_ret: &mut MaybeUninit<wasmtime_val_t>, |
| 76 | ) -> Option<Box<wasmtime_error_t>> { |
| 77 | let mut scope = RootScope::new(&mut store); |
| 78 | let rooted = exn.as_wasmtime()?.to_rooted(&mut scope); |
| 79 | handle_result(rooted.field(&mut scope, index), |val| { |
| 80 | crate::initialize(val_ret, wasmtime_val_t::from_val(&mut scope, val)); |
| 81 | }) |
| 82 | } |
| 83 | |
| 84 | #[unsafe(no_mangle)] |
| 85 | pub unsafe extern "C" fn wasmtime_context_set_exception( |
no test coverage detected