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

Function hello_callback

example/serialize.c:11–17  ·  view source on GitHub ↗

A function to be called from Wasm code.

Source from the content-addressed store, hash-verified

9
10// A function to be called from Wasm code.
11own wasm_trap_t* hello_callback(
12 const wasm_val_vec_t* args, wasm_val_vec_t* results
13) {
14 printf("Calling back...\n");
15 printf("> Hello World!\n");
16 return NULL;
17}
18
19
20int main(int argc, const char* argv[]) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected