summaryrefslogtreecommitdiff
path: root/tmpl/factory_detail.tmpl.hpp
diff options
context:
space:
mode:
authorJosh Blum2013-08-01 01:12:24 -0700
committerJosh Blum2013-08-01 01:12:24 -0700
commita23bf59c46dae7aa25c4763c6122d0822c88abc7 (patch)
treeaf37ea0c6b2872071938390c857e4efcb4975d86 /tmpl/factory_detail.tmpl.hpp
parent1897808616c91d277e24335a337bec92592fb87a (diff)
downloadsandhi-a23bf59c46dae7aa25c4763c6122d0822c88abc7.tar.gz
sandhi-a23bf59c46dae7aa25c4763c6122d0822c88abc7.tar.bz2
sandhi-a23bf59c46dae7aa25c4763c6122d0822c88abc7.zip
gras: jit factory api + unit tests
Diffstat (limited to 'tmpl/factory_detail.tmpl.hpp')
-rw-r--r--tmpl/factory_detail.tmpl.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmpl/factory_detail.tmpl.hpp b/tmpl/factory_detail.tmpl.hpp
index 660a690..bab73cf 100644
--- a/tmpl/factory_detail.tmpl.hpp
+++ b/tmpl/factory_detail.tmpl.hpp
@@ -41,7 +41,7 @@ template <typename ReturnType, $expand('typename A%d', $NARGS)>
void register_factory(const std::string &path, ReturnType(*fcn)($expand('const A%d &', $NARGS)))
{
void *r = new FactoryRegistryEntryImpl$(NARGS)<ReturnType, $expand('A%d', $NARGS)>(fcn);
- Factory::_register_factory(path, r);
+ _register_factory(path, r);
}
#end for
@@ -56,7 +56,7 @@ Element *make(const std::string &path, $expand('const A%d &a%d', $NARGS))
#for $i in range($NARGS):
args[$i] = PMC_M(a$i);
#end for
- return Factory::_handle_make(path, PMC_M(args));
+ return _handle_make(path, PMC_M(args));
}
#end for