pub unsafe extern "C" fn WasmEdge_ExecutorExperimentalRegisterPreHostFunction(
Cxt: *mut WasmEdge_ExecutorContext,
Data: *mut c_void,
Func: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
)Expand description
Register a host function that will be invoked before executing any host functions.
There is only one pre-host-function. After calling this function, the previously registered host function will be replaced. This is an experimental feature. Use it at your own risk.
This function is thread-safe.
\param Cxt the WasmEdge_ExecutorContext. \param Data the host data to set for the given host function. When calling the Func, this pointer will be passed as the argument to the Func function. \param Func the function to be invoked before executing any other host functions.