Added #if wxUSE_STACKWALKER. Fixes compilation of OS X shared libraries.

TODO: What does it take to get wxStackWalker on OS X?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott 2005-03-27 01:59:17 +00:00
parent 4ebd02e913
commit 707c441892

View File

@ -54,11 +54,13 @@ public:
// description is shown to the user in the report summary // description is shown to the user in the report summary
virtual void AddFile(const wxString& name, const wxString& description); virtual void AddFile(const wxString& name, const wxString& description);
#if wxUSE_STACKWALKER
// add an XML file containing the current or exception context and the // add an XML file containing the current or exception context and the
// stack trace // stack trace
bool AddCurrentContext() { return AddContext(Context_Current); } bool AddCurrentContext() { return AddContext(Context_Current); }
bool AddExceptionContext() { return AddContext(Context_Exception); } bool AddExceptionContext() { return AddContext(Context_Exception); }
virtual bool AddContext(Context ctx); virtual bool AddContext(Context ctx);
#endif
#if wxUSE_CRASHREPORT #if wxUSE_CRASHREPORT
// add a file with crash report // add a file with crash report
@ -90,11 +92,13 @@ public:
void RemoveFile(const wxString& name); void RemoveFile(const wxString& name);
protected: protected:
#if wxUSE_STACKWALKER
// used by AddContext() // used by AddContext()
virtual bool DoAddSystemInfo(wxXmlNode *nodeSystemInfo); virtual bool DoAddSystemInfo(wxXmlNode *nodeSystemInfo);
virtual bool DoAddLoadedModules(wxXmlNode *nodeModules); virtual bool DoAddLoadedModules(wxXmlNode *nodeModules);
virtual bool DoAddExceptionInfo(wxXmlNode *nodeContext); virtual bool DoAddExceptionInfo(wxXmlNode *nodeContext);
virtual void DoAddCustomContext(wxXmlNode * WXUNUSED(nodeRoot)) { } virtual void DoAddCustomContext(wxXmlNode * WXUNUSED(nodeRoot)) { }
#endif
// used by Process() // used by Process()
virtual bool DoProcess(); virtual bool DoProcess();