MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / registerPreHostFunction

Method registerPreHostFunction

lib/executor/executor.cpp:94–98  ·  view source on GitHub ↗

Register a host function which will be invoked before calling a host function.

Source from the content-addressed store, hash-verified

92/// Register a host function which will be invoked before calling a
93/// host function.
94Expect<void> Executor::registerPreHostFunction(
95 void *HostData = nullptr, std::function<void(void *)> HostFunc = nullptr) {
96 HostFuncHelper.setPreHost(HostData, HostFunc);
97 return {};
98}
99
100/// Register a host function which will be invoked after calling a
101/// host function.

Calls 1

setPreHostMethod · 0.80

Tested by

no test coverage detected