Skip to content
Snippets Groups Projects
Commit 14b0cad5 authored by Jeremie Deray's avatar Jeremie Deray
Browse files

add namespaces in WOLF_REGISTER_SENSOR macro

parent 6d18a269
No related branches found
No related tags found
1 merge request!80Toward generic factory
This commit is part of merge request !80. Comments created here will be created in the context of that merge request.
...@@ -226,8 +226,8 @@ inline std::string Factory<SensorBase, ...@@ -226,8 +226,8 @@ inline std::string Factory<SensorBase,
} }
#define WOLF_REGISTER_SENSOR(SensorType, SensorName) \ #define WOLF_REGISTER_SENSOR(SensorType, SensorName) \
const bool SensorName##Registered = \ namespace wolf{ namespace{ const bool SensorName##Registered = \
wolf::SensorFactory::get().registerCreator(SensorType, SensorName::create); \ SensorFactory::get().registerCreator(SensorType, SensorName::create); }}\
} /* namespace wolf */ } /* namespace wolf */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment