(state: *mut c_void)
| 403 | /// Execute the Wasm benchmark module. |
| 404 | #[unsafe(no_mangle)] |
| 405 | pub extern "C" fn wasm_bench_execute(state: *mut c_void) -> ExitCode { |
| 406 | let state = unsafe { (state as *mut BenchState).as_mut().unwrap() }; |
| 407 | let result = state.execute().context("failed to execute"); |
| 408 | to_exit_code(result) |
| 409 | } |
| 410 | |
| 411 | /// Helper function for converting a Rust result to a C error code. |
| 412 | /// |
nothing calls this directly
no test coverage detected