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

Function wasmtime_instance_pre_module

crates/c-api/src/instance.rs:178–183  ·  view source on GitHub ↗
(
    instance_pre: &wasmtime_instance_pre_t,
)

Source from the content-addressed store, hash-verified

176
177#[unsafe(no_mangle)]
178pub unsafe extern "C" fn wasmtime_instance_pre_module(
179 instance_pre: &wasmtime_instance_pre_t,
180) -> Box<wasmtime_module_t> {
181 let module = instance_pre.underlying.module().clone();
182 Box::new(wasmtime_module_t { module })
183}

Callers

nothing calls this directly

Calls 3

newFunction · 0.50
cloneMethod · 0.45
moduleMethod · 0.45

Tested by

no test coverage detected