(state: *mut c_void)
| 395 | /// Instantiate the Wasm benchmark module. |
| 396 | #[unsafe(no_mangle)] |
| 397 | pub extern "C" fn wasm_bench_instantiate(state: *mut c_void) -> ExitCode { |
| 398 | let state = unsafe { (state as *mut BenchState).as_mut().unwrap() }; |
| 399 | let result = state.instantiate().context("failed to instantiate"); |
| 400 | to_exit_code(result) |
| 401 | } |
| 402 | |
| 403 | /// Execute the Wasm benchmark module. |
| 404 | #[unsafe(no_mangle)] |
nothing calls this directly
no test coverage detected