global initializer step More...
Go to the source code of this file.
Macros | |
| #define | ZFFrameworkInitFinishCallbacks |
| called when ZFFrameworkInit finished | |
| #define | ZFFrameworkCleanupPrepareCallbacks |
| called when ZFFrameworkInit finished | |
| #define | ZFTOKEN_ZFFrameworkStateNotAvailable |
| string tokens | |
| #define | ZFTOKEN_ZFFrameworkStateInitRunning |
| string tokens | |
| #define | ZFTOKEN_ZFFrameworkStateAvailable |
| string tokens | |
| #define | ZFTOKEN_ZFFrameworkStateCleanupRunning |
| string tokens | |
| #define | ZF_GLOBAL_INITIALIZER_INIT_WITH_LEVEL(Name, ZFLevel_) |
| code block that will be executed when app start and stop | |
| #define | ZF_GLOBAL_INITIALIZER_INIT(Name) |
| see ZF_GLOBAL_INITIALIZER_INIT_WITH_LEVEL | |
| #define | ZF_GLOBAL_INITIALIZER_DESTROY(Name) |
| see ZF_GLOBAL_INITIALIZER_INIT_WITH_LEVEL | |
| #define | ZF_GLOBAL_INITIALIZER_END(Name) |
| see ZF_GLOBAL_INITIALIZER_INIT_WITH_LEVEL | |
| #define | ZF_GLOBAL_INITIALIZER_INSTANCE(Name) |
| access the instance of the initializer | |
| #define | ZF_GLOBAL_INITIALIZER_CLASS(Name) |
| the class holder of the global initializer | |
Typedefs | |
| typedef void(* | ZFFrameworkStateUpdateCallback) (void) |
| see ZFFrameworkInit | |
Enumerations | |
| enum | ZFFrameworkState { ZFFrameworkStateNotAvailable , ZFFrameworkStateInitRunning , ZFFrameworkStateAvailable , ZFFrameworkStateCleanupRunning } |
| state for ZFFramework More... | |
Functions | |
| void | ZFFrameworkInit (void) |
| must be called in main thread before any access of ZFFramework member | |
| void | ZFFrameworkCleanup (void) |
| see ZFFrameworkInit | |
| void | ZFFrameworkAssertInit (void) |
| assert fail and output log if ZFFramework not initialized | |
| ZFFrameworkState | ZFFrameworkStateCheck (void) |
| get current state of ZFFramework | |
| ZFFrameworkState | ZFFrameworkStateCheck (ZFLevel level) |
| get current state of ZFFramework of specified level | |
global initializer step
| #define ZF_GLOBAL_INITIALIZER_INIT_WITH_LEVEL | ( | Name, | |
| ZFLevel_ ) |
code block that will be executed when app start and stop
usage:
| enum ZFFrameworkState |
state for ZFFramework
| Enumerator | |
|---|---|
| ZFFrameworkStateNotAvailable | not available |
| ZFFrameworkStateInitRunning | during init step (ZFFrameworkInit) |
| ZFFrameworkStateAvailable | available, init finished |
| ZFFrameworkStateCleanupRunning | during cleanup step (ZFFrameworkCleanup) |
|
extern |
must be called in main thread before any access of ZFFramework member
usually, this would been done by implementation of ZFFramework
ADVANCED:
if you want to dynamically load other libs written in ZFFramework after ZFFramework's main lib initialized: