Use the new exception handler in 'testing' builds (for debugging without a debugger)
This was SVN commit r801.
This commit is contained in:
parent
1550577c94
commit
b39a059e10
@ -741,7 +741,6 @@ static void psShutdown()
|
|||||||
|
|
||||||
extern u64 PREVTSC;
|
extern u64 PREVTSC;
|
||||||
|
|
||||||
|
|
||||||
static void Shutdown()
|
static void Shutdown()
|
||||||
{
|
{
|
||||||
psShutdown(); // Must delete g_GUI before g_ScriptingHost
|
psShutdown(); // Must delete g_GUI before g_ScriptingHost
|
||||||
@ -1165,12 +1164,13 @@ static void Frame()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
// Choose when to override the standard exception handling (i.e. opening
|
||||||
# ifdef NDEBUG
|
// the debugger when available, or crashing when not) with one that
|
||||||
// Define/undefine this as desired:
|
// generates the crash log/dump.
|
||||||
|
#if defined(_WIN32) && ( defined(NDEBUG) || defined(TESTING) )
|
||||||
# define CUSTOM_EXCEPTION_HANDLER
|
# define CUSTOM_EXCEPTION_HANDLER
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CUSTOM_EXCEPTION_HANDLER
|
#ifdef CUSTOM_EXCEPTION_HANDLER
|
||||||
#include <excpt.h>
|
#include <excpt.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user