MCPcopy Create free account
hub / github.com/WebAssembly/wasm-c-api / wasm_callback

Function wasm_callback

src/wasm-c.cc:782–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780extern "C++" {
781
782auto wasm_callback(
783 void* env, const vec<Val>& args, vec<Val>& results
784) -> own<Trap> {
785 auto f = reinterpret_cast<wasm_func_callback_t>(env);
786 return adopt_trap(f(hide_val_vec(args), hide_val_vec(results)));
787}
788
789struct wasm_callback_env_t {
790 wasm_func_callback_with_env_t callback;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected