diff options
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 { |