23 #ifndef USGETMODULECONTEXT_H 24 #define USGETMODULECONTEXT_H 26 #ifndef US_MODULE_NAME 27 #error Missing preprocessor define US_MODULE_NAME 30 #include <usGlobalConfig.h> 34 #include <usModuleUtils_p.h> 52 Module* module = ModuleRegistry::GetModule(US_STR(US_MODULE_NAME));
57 US_WARN <<
"Module '" << US_STR(US_MODULE_NAME) <<
"' unknown. " 58 "The calling module probably misses a US_MODULE_NAME compile definition " 59 "and/or a call to US_INITIALIZE_MODULE in one of its source files.";
65 #endif // USGETMODULECONTEXT_H
ModuleContext * GetModuleContext() const
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.