27#ifndef INCLUDED_MODULE_INIT
28#define INCLUDED_MODULE_INIT
Status ModuleShutdown(volatile ModuleInitState *initState, void(*shutdown)())
calls a user-defined shutdown function if initState is "initialized".
Definition: module_init.cpp:65
std::atomic< Status > ModuleInitState
initialization state of a module (class, source file, etc.) must be initialized to zero (e....
Definition: module_init.h:37
Status ModuleInit(volatile ModuleInitState *initState, Status(*init)())
calls a user-defined init function if initState is zero.
Definition: module_init.cpp:40
i64 Status
Error handling system.
Definition: status.h:173
static ModuleInitState initState
Definition: wnuma.cpp:274