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 previous registered host function will be replaced. This is a 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 into the given host function. When calling the Func, this pointer will be the argument of the Func function. \param Func the function to be invoked before executing any other host functions.