1
0
forked from 0ad/0ad

Use the new exception handler in 'testing' builds (for debugging without a debugger)

This was SVN commit r801.
This commit is contained in:
Ykkrosh 2004-07-22 13:22:28 +00:00
parent 1550577c94
commit b39a059e10

View File

@ -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>