summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJosh Blum2013-07-07 20:06:02 -0700
committerJosh Blum2013-07-07 20:06:02 -0700
commit0793d5b373f0d6ed54b08765be09cc8250fe7f6a (patch)
treee1d40a47845e7155cb0c0ae2dce584a7fde94762 /include
parentcfd9e8146f7589f3f04fea979c741267b0454546 (diff)
downloadsandhi-0793d5b373f0d6ed54b08765be09cc8250fe7f6a.tar.gz
sandhi-0793d5b373f0d6ed54b08765be09cc8250fe7f6a.tar.bz2
sandhi-0793d5b373f0d6ed54b08765be09cc8250fe7f6a.zip
gras: some tweaks to factory
Diffstat (limited to 'include')
-rw-r--r--include/gras/factory.hpp8
-rw-r--r--include/gras/gras.hpp8
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