Update lib/api/src/externals.rs

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
This commit is contained in:
Syrus Akbary
2020-05-18 12:27:30 -07:00
committed by GitHub
parent 5a36ad6a5b
commit ae45ce8d89

View File

@@ -835,7 +835,7 @@ impl<T: VMDynamicFunction> VMDynamicFunctionImportCall<T> for VMDynamicFunctionI
// This function wraps our func, to make it compatible with the
// reverse trampoline signature
unsafe fn func_wrapper(
// Note: we use the trick that the first param to this funciton is the `VMDynamicFunctionImportContext`
// Note: we use the trick that the first param to this function is the `VMDynamicFunctionImportContext`
// itself, so rather than doing `dynamic_ctx: &VMDynamicFunctionImportContext<T>`, we simplify it a bit
&self,
caller_vmctx: *mut VMContext,