MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / RegisterCheckScopesAtExit

Function RegisterCheckScopesAtExit

test/webgpu_basic_rendering.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37};
38
39void RegisterCheckScopesAtExit() {
40 atexit([](){
41 // Check we don't exit before the tests are done.
42 // (Make sure there's a keepalive for everything the test has scopes for.)
43 // Build with -sRUNTIME_DEBUG to trace keepalives.
44 assert(sScopeCount == 0);
45 });
46}
47
48static const wgpu::Instance instance = wgpuCreateInstance(nullptr);
49

Callers 1

mainFunction · 0.85

Calls 2

atexitFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected