32 uint customCallback (0);
34 void basicInitHook () { ++basicInit; }
35 void myCallback() { ++customCallback; }
37 const char* MY_DEADLY_EVENT =
"dial M for murder";
56 CHECK (basicInit,
"the basic-init callback hasn't been invoked automatically");
57 CHECK (1 == basicInit,
"the basic-init callback has been invoked more than once");
59 CHECK (!customCallback);
61 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
Simplistic 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.