File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 44#include " convar.h"
55#include " tier0/icommandline.h"
66
7+ static ConVar module_debug (" holylib_module_debug" , " 0" );
8+
79CModule::~CModule ()
810{
911 if ( m_pCVar )
@@ -277,13 +279,17 @@ void CModuleManager::Setup(CreateInterfaceFn appfn, CreateInterfaceFn gamefn)
277279#define VCALL_ENABLED_MODULES (call ) \
278280 for (CModule* pModule : m_pModules) { \
279281 if ( !pModule->FastIsEnabled () ) { continue ; } \
282+ if ( module_debug.GetBool () ) { Msg (" holylib: Calling(V) %s on %s\n " , #call, pModule->GetModule ()->Name ()); } \
280283 pModule->GetModule ()-> call; \
284+ if ( module_debug.GetBool () ) { Msg (" holylib: Finished calling(V) %s on %s\n " , #call, pModule->GetModule ()->Name ()); } \
281285 }
282286
283287#define CALL_ENABLED_MODULES (call ) \
284288 for (CModule* pModule : m_pModules) { \
285289 if ( !pModule->FastIsEnabled () ) { continue ; } \
290+ if ( module_debug.GetBool () ) { Msg (" holylib: Calling %s on %s\n " , #call, pModule->GetModule ()->Name ()); } \
286291 pModule-> call; \
292+ if ( module_debug.GetBool () ) { Msg (" holylib: Finished calling %s on %s\n " , #call, pModule->GetModule ()->Name ()); } \
287293 }
288294
289295
You can’t perform that action at this time.
0 commit comments