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

Function finalize

example/finalize.cc:14–20  ·  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 = reinterpret_cast<intptr_t>(data);
16 if (i % (iterations / 10) == 0) {
17 std::cout << "Finalizing #" << i << "..." << std::endl;
18 }
19 --live_count;
20}
21
22void run_in_store(wasm::Store* store) {
23 // Load binary.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected