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:
Vadim Zeitlin
2008-09-14 00:26:29 +00:00
parent c11bdf68b8
commit 4db307e110
5 changed files with 17 additions and 2 deletions

View File

@@ -478,11 +478,13 @@ bool wxDebugReport::AddContext(wxDebugReport::Context ctx)
#if wxUSE_STACKWALKER
wxXmlNode *nodeStack = new wxXmlNode(wxXML_ELEMENT_NODE, _T("stack"));
XmlStackWalker sw(nodeStack);
#if wxUSE_ON_FATAL_EXCEPTION
if ( ctx == Context_Exception )
{
sw.WalkFromException();
}
else // Context_Current
#endif // wxUSE_ON_FATAL_EXCEPTION
{
sw.Walk();
}