From 17d636eec0ee0da346173066dd4f400a64e96c44 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 30 Jul 2013 20:59:41 -0700 Subject: gras: rename some factory functions --- tmpl/factory_detail.tmpl.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tmpl/factory_detail.tmpl.hpp') diff --git a/tmpl/factory_detail.tmpl.hpp b/tmpl/factory_detail.tmpl.hpp index 8712db4..660a690 100644 --- a/tmpl/factory_detail.tmpl.hpp +++ b/tmpl/factory_detail.tmpl.hpp @@ -38,10 +38,10 @@ struct FactoryRegistryEntryImpl$(NARGS) : FactoryRegistryEntry }; template -void register_make(const std::string &name, ReturnType(*fcn)($expand('const A%d &', $NARGS))) +void register_factory(const std::string &path, ReturnType(*fcn)($expand('const A%d &', $NARGS))) { void *r = new FactoryRegistryEntryImpl$(NARGS)(fcn); - Factory::_register_make(name, r); + Factory::_register_factory(path, r); } #end for @@ -50,13 +50,13 @@ void register_make(const std::string &name, ReturnType(*fcn)($expand('const A%d **********************************************************************/ #for $NARGS in range($MAX_ARGS) template <$expand('typename A%d', $NARGS)> -Element *make(const std::string &name, $expand('const A%d &a%d', $NARGS)) +Element *make(const std::string &path, $expand('const A%d &a%d', $NARGS)) { PMCList args($NARGS); #for $i in range($NARGS): args[$i] = PMC_M(a$i); #end for - return Factory::_handle_make(name, PMC_M(args)); + return Factory::_handle_make(path, PMC_M(args)); } #end for -- cgit