summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJosh Blum2013-07-07 22:42:53 -0700
committerJosh Blum2013-07-07 22:42:53 -0700
commitdd3872720fcd35dc6e9e95eb597901902bea1ec5 (patch)
tree5cc01745d0f69d45c2777a465861a36139e1f111 /include
parent746b27ece7ae9cd60cab5945a195751ec9f9199f (diff)
downloadsandhi-dd3872720fcd35dc6e9e95eb597901902bea1ec5.tar.gz
sandhi-dd3872720fcd35dc6e9e95eb597901902bea1ec5.tar.bz2
sandhi-dd3872720fcd35dc6e9e95eb597901902bea1ec5.zip
gras: a unit test for the factory
Diffstat (limited to 'include')
-rw-r--r--include/gras/factory.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/gras/factory.hpp b/include/gras/factory.hpp
index 99d97f0..52ed881 100644
--- a/include/gras/factory.hpp
+++ b/include/gras/factory.hpp
@@ -13,9 +13,9 @@
* Declare this macro at the global scope in a cpp file.
* The block will register at static initialization time.
*/
-#define GRAS_REGISTER_FACTORY(name) \
- GRAS_STATIC_BLOCK(name) \
- {gras::Factory::register_make(#name, &name);}
+#define GRAS_REGISTER_FACTORY(name, fcn) \
+ GRAS_STATIC_BLOCK(fcn) \
+ {gras::Factory::register_make(name, &fcn);}
namespace gras
{