(
c: &mut wasm_config_t,
target: *const c_char,
)
| 300 | |
| 301 | #[unsafe(no_mangle)] |
| 302 | pub unsafe extern "C" fn wasmtime_config_target_set( |
| 303 | c: &mut wasm_config_t, |
| 304 | target: *const c_char, |
| 305 | ) -> Option<Box<wasmtime_error_t>> { |
| 306 | let target = CStr::from_ptr(target).to_str().expect("not valid utf-8"); |
| 307 | handle_result(c.config.target(target), |_cfg| {}) |
| 308 | } |
| 309 | |
| 310 | #[unsafe(no_mangle)] |
| 311 | pub extern "C" fn wasmtime_config_macos_use_mach_ports_set(c: &mut wasm_config_t, enabled: bool) { |
nothing calls this directly
no test coverage detected