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) Lumiera.org
6  2009, Hermann Vosseler <Ichthyostega@web.de>
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of
11  the License, or (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 
22 */
23 
36 #ifndef NOBUG_INIT_H
37 #define NOBUG_INIT_H
38 
39 #include "include/lifecycle.h"
40 
41 #include <nobug.h>
42 
43 
44 
45 namespace lumiera {
46  void initialise_NoBug ();
47 
48  namespace {
49  LifecycleHook trigger_init_ (ON_BASIC_INIT, &initialise_NoBug);
50 } }
51 
52 
53 #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:76
Lumiera public interface.
Definition: advice.cpp:113