make the log file more readable; fix the count of warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-03-24 13:02:01 +00:00
parent 71f8a117db
commit 4168bc452a
2 changed files with 6 additions and 2 deletions

View File

@@ -165,8 +165,11 @@ bool IfaceCheckApp::Compare()
} else { } else {
// shorten the name of the header so the log file is more readable
wxString header = interface[i].GetHeader().AfterLast('/');
LogMessage("%s: couldn't find the real interface for the '%s' class", LogMessage("%s: couldn't find the real interface for the '%s' class",
interface[i].GetHeader(), cname); header, cname);
ccount++; ccount++;
} }
} }
@@ -244,6 +247,7 @@ int IfaceCheckApp::CompareClasses(const wxClass* iface, const wxClassPtrArray& a
LogWarning("%s: the method '%s' of classes '%s' has a different signature%s", LogWarning("%s: the method '%s' of classes '%s' has a different signature%s",
header, tofind, searchedclasses, tmp); header, tofind, searchedclasses, tmp);
count++;
// try to modify it! // try to modify it!
if (m_modify) if (m_modify)

View File

@@ -18,7 +18,7 @@
// helper macros // helper macros
#define LogMessage(fmt, ...) { wxPrintf(fmt "\n", __VA_ARGS__); fflush(stdout); } #define LogMessage(fmt, ...) { wxPrintf(fmt "\n", __VA_ARGS__); fflush(stdout); }
#define LogWarning(fmt, ...) { wxPrintf("WARNING: " fmt "\n", __VA_ARGS__); fflush(stdout); } #define LogWarning(fmt, ...) { wxPrintf(fmt "\n", __VA_ARGS__); fflush(stdout); }
#define LogError(fmt, ...) { wxPrintf("ERROR: " fmt "\n", __VA_ARGS__); fflush(stdout); } #define LogError(fmt, ...) { wxPrintf("ERROR: " fmt "\n", __VA_ARGS__); fflush(stdout); }
#define wxPrint(str) { wxPrintf(str); fflush(stdout); } #define wxPrint(str) { wxPrintf(str); fflush(stdout); }