// only
wxStackWalker(const char * WXUNUSED(argv0) = NULL) { }
- virtual void Walk(size_t skip = 1, size_t maxDepth = 200);
+ virtual void Walk(size_t skip = 1, size_t maxDepth = wxSTACKWALKER_MAX_DEPTH);
#if wxUSE_ON_FATAL_EXCEPTION
- virtual void WalkFromException(size_t maxDepth = 200);
+ virtual void WalkFromException(size_t maxDepth = wxSTACKWALKER_MAX_DEPTH);
#endif // wxUSE_ON_FATAL_EXCEPTION
// enumerate stack frames from the given context
- void WalkFrom(const _CONTEXT *ctx, size_t skip = 1, size_t maxDepth = 200);
- void WalkFrom(const _EXCEPTION_POINTERS *ep, size_t skip = 1, size_t maxDepth = 200);
+ void WalkFrom(const _CONTEXT *ctx, size_t skip = 1, size_t maxDepth = wxSTACKWALKER_MAX_DEPTH);
+ void WalkFrom(const _EXCEPTION_POINTERS *ep, size_t skip = 1, size_t maxDepth = wxSTACKWALKER_MAX_DEPTH);
};
#endif // _WX_MSW_STACKWALK_H_
FreeStack();
}
- virtual void Walk(size_t skip = 1, size_t maxDepth = 200);
+ virtual void Walk(size_t skip = 1, size_t maxDepth = wxSTACKWALKER_MAX_DEPTH);
#if wxUSE_ON_FATAL_EXCEPTION
- virtual void WalkFromException(size_t maxDepth = 200) { Walk(2, maxDepth); }
+ virtual void WalkFromException(size_t maxDepth = wxSTACKWALKER_MAX_DEPTH) { Walk(2, maxDepth); }
#endif // wxUSE_ON_FATAL_EXCEPTION
static const wxString& GetExePath() { return ms_exepath; }
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
+/**
+ This is the default value of the wxStackWalker::Walk function.
+*/
+#define wxSTACKWALKER_MAX_DEPTH (200)
+
/**
@class wxStackWalker
notice that Walk() frame itself is not included if skip = 1).
Up to @a maxDepth frames are walked from the innermost to the outermost one.
+ It defaults to ::wxSTACKWALKER_MAX_DEPTH.
*/
- virtual void Walk(size_t skip = 1, size_t maxDepth = 200);
+ virtual void Walk(size_t skip = 1, size_t maxDepth = wxSTACKWALKER_MAX_DEPTH);
/**
Enumerate stack frames from the location of uncaught exception.
This method can only be called from wxApp::OnFatalException().
Up to @a maxDepth frames are walked from the innermost to the outermost one.
+ It defaults to ::wxSTACKWALKER_MAX_DEPTH.
*/
- virtual void WalkFromException(size_t maxDepth = 200);
+ virtual void WalkFromException(size_t maxDepth = wxSTACKWALKER_MAX_DEPTH);
protected:
/**