Skip to content
Snippets Groups Projects

WIP: Resolve "Simplification of factory register macro: removing Type"

4 files
+ 21
21
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -185,9 +185,9 @@ inline std::string FactoryProcessor::getClass()
return "FactoryProcessor";
}
#define WOLF_REGISTER_PROCESSOR(ProcessorType, ProcessorName) \
namespace{ const bool WOLF_UNUSED ProcessorName##Registered = \
wolf::FactoryProcessor::get().registerCreator(ProcessorType, ProcessorName::create); } \
#define WOLF_REGISTER_PROCESSOR(ProcessorType) \
namespace{ const bool WOLF_UNUSED ProcessorType##Registered = \
wolf::FactoryProcessor::get().registerCreator(#ProcessorType, ProcessorType::create); } \
typedef Factory<ProcessorBase,
const std::string&,
@@ -199,9 +199,9 @@ inline std::string AutoConfFactoryProcessor::getClass()
}
#define WOLF_REGISTER_PROCESSOR_AUTO(ProcessorType, ProcessorName) \
namespace{ const bool WOLF_UNUSED ProcessorName##AutoConfRegistered = \
wolf::AutoConfFactoryProcessor::get().registerCreator(ProcessorType, ProcessorName::create); } \
#define WOLF_REGISTER_PROCESSOR_AUTO(ProcessorType) \
namespace{ const bool WOLF_UNUSED ProcessorType##AutoConfRegistered = \
wolf::AutoConfFactoryProcessor::get().registerCreator(#ProcessorType, ProcessorType::create); } \
} /* namespace wolf */
Loading