fix linking error when wxUSE_ON_FATAL_EXCEPTION==0 (closes #10969)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -318,6 +318,8 @@ void wxStackWalker::WalkFrom(const _EXCEPTION_POINTERS *ep, size_t skip)
|
|||||||
|
|
||||||
void wxStackWalker::WalkFromException()
|
void wxStackWalker::WalkFromException()
|
||||||
{
|
{
|
||||||
|
// wxGlobalSEInformation is unavailable if wxUSE_ON_FATAL_EXCEPTION==0
|
||||||
|
#if wxUSE_ON_FATAL_EXCEPTION
|
||||||
extern EXCEPTION_POINTERS *wxGlobalSEInformation;
|
extern EXCEPTION_POINTERS *wxGlobalSEInformation;
|
||||||
|
|
||||||
wxCHECK_RET( wxGlobalSEInformation,
|
wxCHECK_RET( wxGlobalSEInformation,
|
||||||
@@ -325,6 +327,7 @@ void wxStackWalker::WalkFromException()
|
|||||||
|
|
||||||
// don't skip any frames, the first one is where we crashed
|
// don't skip any frames, the first one is where we crashed
|
||||||
WalkFrom(wxGlobalSEInformation, 0);
|
WalkFrom(wxGlobalSEInformation, 0);
|
||||||
|
#endif // wxUSE_ON_FATAL_EXCEPTION
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxStackWalker::Walk(size_t skip, size_t WXUNUSED(maxDepth))
|
void wxStackWalker::Walk(size_t skip, size_t WXUNUSED(maxDepth))
|
||||||
|
Reference in New Issue
Block a user