diff options
Diffstat (limited to 'include/gras')
-rw-r--r-- | include/gras/factory.hpp | 8 | ||||
-rw-r--r-- | include/gras/gras.hpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/gras/factory.hpp b/include/gras/factory.hpp index 13d1c2b..99d97f0 100644 --- a/include/gras/factory.hpp +++ b/include/gras/factory.hpp @@ -8,14 +8,6 @@ #include <PMC/PMC.hpp> #include <string> -//! A fixture for static initialization code -#define GRAS_STATIC_BLOCK(name) \ - static struct name ## _static_fixture__ \ - { \ - name ## _static_fixture__(void); \ - } name ## _static_fixture_instance__; \ - name ## _static_fixture__::name ## _static_fixture__(void) - /*! * Register a block's factory function: * Declare this macro at the global scope in a cpp file. diff --git a/include/gras/gras.hpp b/include/gras/gras.hpp index c809f45..50d7ed2 100644 --- a/include/gras/gras.hpp +++ b/include/gras/gras.hpp @@ -66,6 +66,14 @@ #define GRAS_UNLIKELY(expr) (expr) #endif +//! A fixture for static initialization code +#define GRAS_STATIC_BLOCK(name) \ + static struct name ## _static_fixture__ \ + { \ + name ## _static_fixture__(void); \ + } name ## _static_fixture_instance__; \ + name ## _static_fixture__::name ## _static_fixture__(void) + namespace gras { //! Typedef for absolute item indexes |