#[no_mangle]
pub unsafe extern "C" fn wasm_global_set(
g: &mut wasm_global_t,
val: &wasm_val_t,
)
Expand description
Sets the current value of the wasm_global_t
.
Wraps Global::set
.
§Safety
- It is the caller’s responsibility that
val
matches the type ofg
. - It is the caller’s responsibility not to alias the
wasm_global_t
with its underlying, internalWasmStoreRef
.