From af6785afcc19e223a9095cfe2e16d6c970fe6496 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Wed, 14 Jan 2009 15:01:23 +0000 Subject: [PATCH] part of commit r58093 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/stackwalk.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wx/stackwalk.h b/include/wx/stackwalk.h index 47805cd738..3fe444ae66 100644 --- a/include/wx/stackwalk.h +++ b/include/wx/stackwalk.h @@ -18,6 +18,8 @@ class WXDLLIMPEXP_FWD_BASE wxStackFrame; +#define wxSTACKWALKER_MAX_DEPTH (200) + // ---------------------------------------------------------------------------- // wxStackFrame: a single stack level // ---------------------------------------------------------------------------- @@ -130,13 +132,13 @@ public: // number of them (this can be useful when Walk() is called from some known // location and you don't want to see the first few frames anyhow; also // notice that Walk() frame itself is not included if skip >= 1) - virtual void Walk(size_t skip = 1, size_t maxDepth = 200) = 0; + virtual void Walk(size_t skip = 1, size_t maxDepth = wxSTACKWALKER_MAX_DEPTH) = 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; + virtual void WalkFromException(size_t maxDepth = wxSTACKWALKER_MAX_DEPTH) = 0; #endif // wxUSE_ON_FATAL_EXCEPTION protected: