wasmedge_sys::ffi

Function WasmEdge_GlobalInstanceSetValue

Source
pub unsafe extern "C" fn WasmEdge_GlobalInstanceSetValue(
    Cxt: *mut WasmEdge_GlobalInstanceContext,
    Value: WasmEdge_Value,
) -> WasmEdge_Result
Expand description

Set the value into a global instance.

This function will return error if the global context is set as the Const mutation or the value type not matched.

\param Cxt the WasmEdge_GlobalInstanceContext. \param Value the value to set into the global context.

\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage for the error message.