MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / wasmtime_config_target_set

Function wasmtime_config_target_set

crates/c-api/src/config.rs:302–308  ·  view source on GitHub ↗
(
    c: &mut wasm_config_t,
    target: *const c_char,
)

Source from the content-addressed store, hash-verified

300
301#[unsafe(no_mangle)]
302pub 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)]
311pub extern "C" fn wasmtime_config_macos_use_mach_ports_set(c: &mut wasm_config_t, enabled: bool) {

Callers

nothing calls this directly

Calls 4

handle_resultFunction · 0.85
to_strMethod · 0.80
expectMethod · 0.45
targetMethod · 0.45

Tested by

no test coverage detected