diff options
author | Josh Blum | 2013-07-07 22:42:53 -0700 |
---|---|---|
committer | Josh Blum | 2013-07-07 22:42:53 -0700 |
commit | dd3872720fcd35dc6e9e95eb597901902bea1ec5 (patch) | |
tree | 5cc01745d0f69d45c2777a465861a36139e1f111 /include | |
parent | 746b27ece7ae9cd60cab5945a195751ec9f9199f (diff) | |
download | sandhi-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.hpp | 6 |
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 { |