X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..86948c99a6f0fd177b09b3db0ef702739ec62a27:/src/common/module.cpp diff --git a/src/common/module.cpp b/src/common/module.cpp index af8f8f15a1..2d5df44954 100644 --- a/src/common/module.cpp +++ b/src/common/module.cpp @@ -22,7 +22,9 @@ #include "wx/log.h" #include "wx/listimpl.cpp" -WX_DEFINE_LIST(wxModuleList); +#define TRACE_MODULE _T("module") + +WX_DEFINE_LIST(wxModuleList) IMPLEMENT_CLASS(wxModule, wxObject) @@ -54,6 +56,8 @@ void wxModule::RegisterModules() if ( classInfo->IsKindOf(CLASSINFO(wxModule)) && (classInfo != (& (wxModule::ms_classInfo))) ) { + wxLogTrace(TRACE_MODULE, wxT("Registering module %s"), + classInfo->GetClassName()); wxModule* module = (wxModule *)classInfo->CreateObject(); RegisterModule(module); } @@ -93,6 +97,8 @@ void wxModule::CleanUpModules() wxModuleList::compatibility_iterator node; for ( node = m_modules.GetFirst(); node; node = node->GetNext() ) { + wxLogTrace(TRACE_MODULE, wxT("Cleanup module %s"), + node->GetData()->GetClassInfo()->GetClassName()); node->GetData()->Exit(); }