X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8c18c674f5ba691c53151595c30248dd9c824a33..bd1a4a99fc1bec4ac5d0b14379dc5345d6ce3253:/src/common/module.cpp diff --git a/src/common/module.cpp b/src/common/module.cpp index b5f5409cc6..2d5df44954 100644 --- a/src/common/module.cpp +++ b/src/common/module.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "module.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -22,9 +18,13 @@ #include "wx/module.h" #include "wx/hash.h" +#include "wx/intl.h" +#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) @@ -56,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); } @@ -95,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(); }