Simplified module registration
This commit is contained in:
parent
456180325e
commit
a29671593e
5 changed files with 24 additions and 13 deletions
|
|
@ -53,5 +53,10 @@ std::shared_ptr<PluginModule> createPluginModule(QString name, QString ident)
|
|||
return std::move(module);
|
||||
}
|
||||
|
||||
#define REGISTER_PLUGIN_MODULE(module, name, ident) \
|
||||
namespace {\
|
||||
std::weak_ptr<PluginModule> register_variable = createPluginModule<module>\
|
||||
(#name, #ident);}
|
||||
|
||||
|
||||
#endif // PLUGIN_SUPPORTPLUGINMODULE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue