Re-enabled crash-dumping exception handler
This was SVN commit r1427.
This commit is contained in:
parent
b50ddcc9bc
commit
b8d0df4b03
@ -1211,9 +1211,9 @@ static void Frame()
|
||||
// Choose when to override the standard exception handling behaviour
|
||||
// (opening the debugger when available, or crashing when not) with
|
||||
// code that generates a crash log/dump.
|
||||
//#if defined(_WIN32) && ( defined(NDEBUG) || defined(TESTING) )
|
||||
// # define CUSTOM_EXCEPTION_HANDLER
|
||||
// #endif
|
||||
#if defined(_WIN32) && ( defined(NDEBUG) || defined(TESTING) )
|
||||
# define CUSTOM_EXCEPTION_HANDLER
|
||||
#endif
|
||||
|
||||
#ifdef CUSTOM_EXCEPTION_HANDLER
|
||||
#include <excpt.h>
|
||||
@ -1230,8 +1230,11 @@ int main(int argc, char* argv[])
|
||||
MICROLOG(L"Init");
|
||||
Init(argc, argv);
|
||||
|
||||
// Do some limited tests to ensure things aren't broken
|
||||
#ifndef NDEBUG
|
||||
extern void PerformTests();
|
||||
PerformTests();
|
||||
#endif
|
||||
|
||||
while(!quit)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user