#endif
#include "wx/app.h"
+#include "wx/wxcrt.h" // for wxPuts
+#include "wx/wxcrtvararg.h" // for wxPrintf
// ----------------------------------------------------------------------------
// conditional compilation
// stack backtrace
// ----------------------------------------------------------------------------
+#if wxUSE_STACKWALKER
+
#include "wx/stackwalk.h"
class StackDump : public wxStackWalker
: wxStackWalker(argv0)
{
}
-
+
virtual void Walk(size_t skip = 1, size_t maxdepth = wxSTACKWALKER_MAX_DEPTH)
{
wxPuts(wxT("Stack dump:"));
}
}
};
+#endif
void InteractiveOutputTestCase::TestStackWalk()
{
#ifdef TEST_STACKWALKER
+#if wxUSE_STACKWALKER
wxPuts(wxT("*** Testing wxStackWalker ***"));
- StackDump dump(wxTheApp->argv[0]);
+ StackDump dump((const char*)wxTheApp->argv[0]);
dump.Walk();
wxPuts("\n");
+#endif
#endif // TEST_STACKWALKER
}