X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb330c2ec30fc5aca5ce0a885530d4d09b351a1d..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/msgout.h diff --git a/include/wx/msgout.h b/include/wx/msgout.h index 59fdc3df10..225df86b3c 100644 --- a/include/wx/msgout.h +++ b/include/wx/msgout.h @@ -102,13 +102,13 @@ private: #endif // ---------------------------------------------------------------------------- -// implementation which sends output to stderr +// implementation which sends output to stderr or specified file // ---------------------------------------------------------------------------- class WXDLLIMPEXP_BASE wxMessageOutputStderr : public wxMessageOutput { public: - wxMessageOutputStderr() { } + wxMessageOutputStderr(FILE *fp = stderr) : m_fp(fp) { } virtual void Output(const wxString& str); @@ -116,6 +116,8 @@ protected: // return the string with "\n" appended if it doesn't already terminate // with it (in which case it's returned unchanged) wxString AppendLineFeedIfNeeded(const wxString& str); + + FILE *m_fp; }; // ----------------------------------------------------------------------------