41 uint customCallback (0);
43 void basicInitHook () { ++basicInit; }
44 void myCallback() { ++customCallback; }
46 const char* MY_DEADLY_EVENT =
"dial M for murder";
65 CHECK (basicInit,
"the basic-init callback hasn't been invoked automatically");
66 CHECK (1 == basicInit,
"the basic-init callback has been invoked more than once");
68 CHECK (!customCallback);
70 CHECK ( 1 == customCallback);
const char * ON_BASIC_INIT
automatic static init. treated specially to run as soon as possible
Installing and invoking of application lifecycle event callbacks.
static void trigger(Symbol eventLabel)
trigger lifecycle callbacks registered under the given label
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
define and register a callback for a specific lifecycle event.
Lumiera public interface.