2 global-ctor.hh -- declare Global construction stuff.
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
10 #define GLOBAL_CTOR_HH
12 #define ADD_GLOBAL_CTOR_WITHNAME(y, x) \
13 class Global_ctor_ ## y \
16 Global_ctor_ ## y () \
18 add_constructor (x); \
23 #define ADD_GLOBAL_CTOR(x) ADD_GLOBAL_CTOR_WITHNAME (x, x);
25 typedef void (* Global_ctor) ();
26 void add_constructor (Global_ctor ctor);
27 void call_constructors ();
29 #endif /* GLOBAL_CTOR_HH */