pub unsafe extern "C" fn WasmEdge_GlobalInstanceCreate(
    GlobType: *const WasmEdge_GlobalTypeContext,
    Value: WasmEdge_Value
) -> *mut WasmEdge_GlobalInstanceContext
Expand description

Creation of the WasmEdge_GlobalInstanceContext.

The caller owns the object and should call WasmEdge_GlobalInstanceDelete to destroy it if the returned object is not added into a WasmEdge_ModuleInstanceContext.

\param GlobType the global type context to initialize the global instance context. \param Value the initial value with its value type of the global instance. This function will fail if the value type of GlobType and Value are not the same.

\returns pointer to context, NULL if failed.