Skip to main content

WasmEdge_GlobalInstanceSetValue

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 in a global instance.

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

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

\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage for the error message.