mirror of https://github.com/PCSX2/pcsx2.git
parent
e42b9ce110
commit
7e52b9550f
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include <wx/stackwalk.h>
|
#include <wx/stackwalk.h>
|
||||||
|
|
||||||
|
#if wxUSE_STACKWALKER
|
||||||
class StackDump : public wxStackWalker
|
class StackDump : public wxStackWalker
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
@ -94,6 +95,7 @@ static wxString pxGetStackTrace( const FnChar_t* calledFrom )
|
||||||
dump.Walk( 3 );
|
dump.Walk( 3 );
|
||||||
return dump.GetStackTrace();
|
return dump.GetStackTrace();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __WXDEBUG__
|
#ifdef __WXDEBUG__
|
||||||
|
|
||||||
|
@ -122,7 +124,11 @@ bool AppDoAssert( const DiagnosticOrigin& origin, const wxChar *msg )
|
||||||
static bool disableAsserts = false;
|
static bool disableAsserts = false;
|
||||||
if( disableAsserts ) return false;
|
if( disableAsserts ) return false;
|
||||||
|
|
||||||
|
#if wxUSE_STACKWALKER
|
||||||
wxString trace( pxGetStackTrace(origin.function) );
|
wxString trace( pxGetStackTrace(origin.function) );
|
||||||
|
#else
|
||||||
|
wxString trace( "Warning: Platform doesn't support wx stackwalker" );
|
||||||
|
#endif
|
||||||
wxString dbgmsg( origin.ToString( msg ) );
|
wxString dbgmsg( origin.ToString( msg ) );
|
||||||
|
|
||||||
wxMessageOutputDebug().Printf( L"%s", WX_STR(dbgmsg) );
|
wxMessageOutputDebug().Printf( L"%s", WX_STR(dbgmsg) );
|
||||||
|
|
Loading…
Reference in New Issue