Add glib-ctor functionality
authorRyan Lortie <desrt@desrt.ca>
Sun, 18 Sep 2011 06:16:07 +0000 (02:16 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 21 Sep 2011 20:06:53 +0000 (16:06 -0400)
commit8f74c927f609139c51b0a0c067ad63c60ac9139b
treebd7bab9a9affaf676dc1b7b0293ce388d1d840ba
parent0e604ef0b527129f947637bc3ae742e9e2c30c90
Add glib-ctor functionality

A pair of macros to define a constructor function (on compilers that
support such a concept) and to ensure that the function is run exactly
once (on compilers that lack such support).

Presently only GCC is implemented.
glib/Makefile.am
glib/glib-ctor.h [new file with mode: 0644]