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

Function wasmtime_instance_pre_instantiate

crates/c-api/src/instance.rs:167–175  ·  view source on GitHub ↗
(
    instance_pre: &wasmtime_instance_pre_t,
    store: WasmtimeStoreContextMut<'_>,
    instance_ptr: &mut Instance,
    trap_ptr: &mut *mut wasm_trap_t,
)

Source from the content-addressed store, hash-verified

165
166#[unsafe(no_mangle)]
167pub unsafe extern "C" fn wasmtime_instance_pre_instantiate(
168 instance_pre: &wasmtime_instance_pre_t,
169 store: WasmtimeStoreContextMut<'_>,
170 instance_ptr: &mut Instance,
171 trap_ptr: &mut *mut wasm_trap_t,
172) -> Option<Box<wasmtime_error_t>> {
173 let result = instance_pre.underlying.instantiate(store);
174 handle_instantiate(result, instance_ptr, trap_ptr)
175}
176
177#[unsafe(no_mangle)]
178pub unsafe extern "C" fn wasmtime_instance_pre_module(

Callers

nothing calls this directly

Calls 2

handle_instantiateFunction · 0.85
instantiateMethod · 0.45

Tested by

no test coverage detected