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

Method registerPostHostFunction

lib/executor/executor.cpp:102–106  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

100/// Register a host function which will be invoked after calling a
101/// host function.
102Expect<void> Executor::registerPostHostFunction(
103 void *HostData = nullptr, std::function<void(void *)> HostFunc = nullptr) {
104 HostFuncHelper.setPostHost(HostData, HostFunc);
105 return {};
106}
107
108/// Invoke function. See "include/executor/executor.h".
109Expect<std::vector<std::pair<ValVariant, ValType>>>

Calls 1

setPostHostMethod · 0.80

Tested by

no test coverage detected