MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / daslang_atexit_audit

Function daslang_atexit_audit

src/ast/ast_module.cpp:154–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 atomic<int> g_envTotal(0);
153
154 static void daslang_atexit_audit() {
155 int n = g_envTotal.load();
156 if ( n != 0 ) {
157 fprintf(stderr, "[daslang atexit] FATAL: g_envTotal=%d at exit (Initialize/Shutdown not balanced)\n", n);
158 _Exit(1);
159 }
160 }
161
162 void Module::Initialize() {
163 daScriptEnvironment::ensure();

Callers

nothing calls this directly

Calls 2

fprintfFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected