diff options
author | Josh Blum | 2013-07-29 22:14:19 -0700 |
---|---|---|
committer | Josh Blum | 2013-07-29 22:14:19 -0700 |
commit | cf8ca0ba62e78e70b7621b0c81bf7c031eabe3ac (patch) | |
tree | 38013fffdde0f9620bbb6f9dc7a47ba770672e70 /tests/example_module.cpp | |
parent | 311d63e3f0432c0dda45d622b618b303c41ec541 (diff) | |
download | sandhi-cf8ca0ba62e78e70b7621b0c81bf7c031eabe3ac.tar.gz sandhi-cf8ca0ba62e78e70b7621b0c81bf7c031eabe3ac.tar.bz2 sandhi-cf8ca0ba62e78e70b7621b0c81bf7c031eabe3ac.zip |
gras: simplfy factory w/ macros and namespace
Diffstat (limited to 'tests/example_module.cpp')
-rw-r--r-- | tests/example_module.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/example_module.cpp b/tests/example_module.cpp index d0316f8..389cf53 100644 --- a/tests/example_module.cpp +++ b/tests/example_module.cpp @@ -26,9 +26,4 @@ struct MyBlock : gras::Block void work(const InputItems &, const OutputItems &){} }; -gras::Block *make_my_block(void) -{ - return new MyBlock(); -} - -GRAS_REGISTER_FACTORY("/tests/my_block0", make_my_block) +GRAS_REGISTER_FACTORY0("/tests/my_block0", MyBlock) |