Lumiera  0.pre.03
»edit your freedom«
nobug-init.hpp
Go to the documentation of this file.
1 /*
2  NOBUG-INIT.hpp - pull up NoBug automagically in static initialisation
3 
4 
5  Copyright (C)
6  2009, Hermann Vosseler <Ichthyostega@web.de>
7 
8   **Lumiera** is free software; you can redistribute it and/or modify it
9   under the terms of the GNU General Public License as published by the
10   Free Software Foundation; either version 2 of the License, or (at your
11   option) any later version. See the file COPYING for further details.
12 
13 */
14 
27 #ifndef NOBUG_INIT_H
28 #define NOBUG_INIT_H
29 
30 #include "include/lifecycle.h"
31 
32 #include <nobug.h>
33 
34 
35 
36 namespace lumiera {
37  void initialise_NoBug ();
38 
39  namespace {
40  LifecycleHook trigger_init_ (ON_BASIC_INIT, &initialise_NoBug);
41 } }
42 
43 
44 #endif /* NOBUG_INIT_H */
const char * ON_BASIC_INIT
automatic static init. treated specially to run as soon as possible
Installing and invoking of application lifecycle event callbacks.
define and register a callback for a specific lifecycle event.
Definition: lifecycle.h:67
Lumiera public interface.
Definition: advice.cpp:104