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

Function finalize

example/finalize.c:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12int live_count = 0;
13
14void finalize(void* data) {
15 intptr_t i = (intptr_t)data;
16 if (i % (iterations / 10) == 0) printf("Finalizing #%" PRIdPTR "...\n", i);
17 --live_count;
18}
19
20void run_in_store(wasm_store_t* store) {
21 // Load binary.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected