X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb330c2ec30fc5aca5ce0a885530d4d09b351a1d..2e51fb3041e78ef15506ed746ed5898536be5955:/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; }; // ----------------------------------------------------------------------------