]> git.saurik.com Git - wxWidgets.git/commit - src/common/imagjpeg.cpp
Add information about the log message generation location to wxLog.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Jul 2009 20:26:34 +0000 (20:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Jul 2009 20:26:34 +0000 (20:26 +0000)
commitaf58844636f51ca9c9350c66de3baf427d3e8646
treeebe325fe9bb88d371a69500413257e25f4be66b2
parentca21a4e72927167815450b77155ec31fae590115
Add information about the log message generation location to wxLog.

This means that wxLog::DoLogRecord() can now retrieve the file name, line
number and the function where the message was logged.

An unfortunate consequence of this change is that now

if ( condition )
wxLogError("Whatever");

results in a warning from g++ 4.x with -Wparentehses, so extra parentheses had
to be added in many places.

Finally, also allow storing arbitrary attributes in wxLogRecordInfo. This had
to be added to implement our own overloaded wxLogStatus() and wxLogSysError()
and will probably be useful for the others as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
27 files changed:
docs/doxygen/overviews/log.h
include/wx/hashmap.h
include/wx/log.h
include/wx/platform.h
interface/wx/log.h
samples/dialogs/dialogs.cpp
src/common/file.cpp
src/common/hyperlnkcmn.cpp
src/common/imagbmp.cpp
src/common/imaggif.cpp
src/common/imagiff.cpp
src/common/imagjpeg.cpp
src/common/imagpcx.cpp
src/common/imagpng.cpp
src/common/imagpnm.cpp
src/common/imagtga.cpp
src/common/imagtiff.cpp
src/common/intl.cpp
src/common/log.cpp
src/common/msgout.cpp
src/common/socket.cpp
src/common/tarstrm.cpp
src/common/zipstrm.cpp
src/common/zstream.cpp
src/generic/logg.cpp
src/gtk/dataview.cpp
src/richtext/richtextbuffer.cpp