X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4db307e110e2559ac88fcad53bb2b7688240e29c..c099b53353ec8c689681a1bc8f5117a584e4098d:/include/wx/stackwalk.h?ds=inline diff --git a/include/wx/stackwalk.h b/include/wx/stackwalk.h index 2a652b0759..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 // ---------------------------------------------------------------------------- @@ -27,7 +29,7 @@ class WXDLLIMPEXP_BASE wxStackFrameBase private: // put this inline function here so that it is defined before use wxStackFrameBase *ConstCast() const - { return wx_const_cast(wxStackFrameBase *, this); } + { return const_cast(this); } public: wxStackFrameBase(size_t level, void *address = NULL) @@ -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: