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

Function wasm_global_set

crates/c-api/src/global.rs:77–80  ·  view source on GitHub ↗
(g: &mut wasm_global_t, val: &wasm_val_t)

Source from the content-addressed store, hash-verified

75
76#[unsafe(no_mangle)]
77pub unsafe extern "C" fn wasm_global_set(g: &mut wasm_global_t, val: &wasm_val_t) {
78 let global = g.global();
79 drop(global.set(g.ext.store.context_mut(), val.val()));
80}
81
82#[unsafe(no_mangle)]
83pub unsafe extern "C" fn wasmtime_global_new(

Callers

nothing calls this directly

Calls 5

globalMethod · 0.80
context_mutMethod · 0.80
valMethod · 0.80
dropFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected