build fixes for wxUSE_ON_FATAL_EXCEPTION==0 (#9937)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -91,7 +91,9 @@ public:
|
||||
wxStackWalker(const char * WXUNUSED(argv0) = NULL) { }
|
||||
|
||||
virtual void Walk(size_t skip = 1, size_t maxDepth = 200);
|
||||
#if wxUSE_ON_FATAL_EXCEPTION
|
||||
virtual void WalkFromException(size_t maxDepth = 200);
|
||||
#endif // wxUSE_ON_FATAL_EXCEPTION
|
||||
|
||||
|
||||
// enumerate stack frames from the given context
|
||||
|
@@ -132,10 +132,12 @@ public:
|
||||
// notice that Walk() frame itself is not included if skip >= 1)
|
||||
virtual void Walk(size_t skip = 1, size_t maxDepth = 200) = 0;
|
||||
|
||||
#if wxUSE_ON_FATAL_EXCEPTION
|
||||
// enumerate stack frames from the location of uncaught exception
|
||||
//
|
||||
// this version can only be called from wxApp::OnFatalException()
|
||||
virtual void WalkFromException(size_t maxDepth = 200) = 0;
|
||||
#endif // wxUSE_ON_FATAL_EXCEPTION
|
||||
|
||||
protected:
|
||||
// this function must be overrided to process the given frame
|
||||
|
@@ -74,7 +74,9 @@ public:
|
||||
}
|
||||
|
||||
virtual void Walk(size_t skip = 1, size_t maxDepth = 200);
|
||||
#if wxUSE_ON_FATAL_EXCEPTION
|
||||
virtual void WalkFromException(size_t maxDepth = 200) { Walk(2, maxDepth); }
|
||||
#endif // wxUSE_ON_FATAL_EXCEPTION
|
||||
|
||||
static const wxString& GetExePath() { return ms_exepath; }
|
||||
|
||||
|
Reference in New Issue
Block a user