Skip to content

Commit

Permalink
fixed minor merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharad committed Sep 16, 2023
1 parent d381e82 commit 4c1739c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/WasmEdge/Internal/FFI/Bindings.chs
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,7 @@ Opaque struct of WasmEdge function type.
-}
{#fun pure unsafe ValueGetFuncRef as ^
{`WasmVal' -- ^ the WasmEdge_Value struct.
} -> `FunctionInstanceContext' 00 ^ pointer to function instance context in the input struct.
} -> `FunctionInstanceContext' -- ^ pointer to function instance context in the input struct.
#}

{-|
Expand Down Expand Up @@ -3381,7 +3381,7 @@ peekCoerce = fmap coerce peek
{`ModuleInstanceContext' -- ^ the WasmEdge_ModuleInstanceContext to add the global instance.
,%`WasmString' -- ^ the export global name WasmEdge_String.
,`GlobalInstanceContext' -- ^ the WasmEdge_GlobalInstanceContext to add.
} -> `()
} -> `()'
#}

-- Function Instance
Expand Down Expand Up @@ -3463,9 +3463,6 @@ hostFuncCallbackPure parCnt retCnt cb = hostFuncCallback parCnt retCnt $ \ref cf
} -> `TableTypeContext' -- ^ pointer to context, NULL if failed.
#}

allocWasmVal :: (Ptr WasmVal -> IO a) -> IO a
allocWasmVal = allocaBytes {#sizeof WasmVal #}

{-|
Get the reference value in a table instance.
Expand Down

0 comments on commit 4c1739c

Please sign in to comment.