MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / EnsureLogInit

Function EnsureLogInit

src/platform/linux/init.cpp:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74static void EnsureLogInit()
75{
76 bool expected = false;
77 if (g_logInitialized.compare_exchange_strong(expected, true))
78 Log::Init();
79}
80
81// Quick JSON bool lookup for early-init config reads (before the full JSON
82// parser is available). Returns defaultVal if the key is absent.

Callers 1

OnLoadFunction · 0.85

Calls 1

InitFunction · 0.50

Tested by

no test coverage detected