Go to the documentation of this file. 30 #ifndef CLASS_LOADER__REGISTER_MACRO_HPP_ 31 #define CLASS_LOADER__REGISTER_MACRO_HPP_ 35 #include "console_bridge/console.h" 40 #define CLASS_LOADER_REGISTER_CLASS_INTERNAL_WITH_MESSAGE(Derived, Base, UniqueID, Message) \ 43 struct ProxyExec ## UniqueID \ 45 typedef Derived _derived; \ 47 ProxyExec ## UniqueID() \ 49 if (!std::string(Message).empty()) { \ 50 CONSOLE_BRIDGE_logInform("%s", Message);} \ 51 class_loader::class_loader_private::registerPlugin<_derived, _base>(#Derived, #Base); \ 54 static ProxyExec ## UniqueID g_register_plugin_ ## UniqueID; \ 57 #define CLASS_LOADER_REGISTER_CLASS_INTERNAL_HOP1_WITH_MESSAGE(Derived, Base, UniqueID, Message) \ 58 CLASS_LOADER_REGISTER_CLASS_INTERNAL_WITH_MESSAGE(Derived, Base, UniqueID, Message) 64 #define CLASS_LOADER_REGISTER_CLASS_WITH_MESSAGE(Derived, Base, Message) \ 65 CLASS_LOADER_REGISTER_CLASS_INTERNAL_HOP1_WITH_MESSAGE(Derived, Base, __COUNTER__, Message) 71 #define CLASS_LOADER_REGISTER_CLASS(Derived, Base) \ 72 CLASS_LOADER_REGISTER_CLASS_WITH_MESSAGE(Derived, Base, "") 74 #endif // CLASS_LOADER__REGISTER_MACRO_HPP_
class_loader
Author(s): Mirza Shah
autogenerated on Wed Jun 5 2019 22:08:15