(svn r17450) -Codechange: refactor the windows crash logger so parts of it can be reused by other crash logger implementations

This commit is contained in:
rubidium
2009-09-07 11:10:49 +00:00
parent ab935f3085
commit 1d7619fdb5
9 changed files with 789 additions and 315 deletions

View File

@@ -62,6 +62,7 @@
#include "highscore.h"
#include "thread/thread.h"
#include "station_base.h"
#include "crashlog.h"
#include "newgrf_commons.h"
@@ -124,10 +125,9 @@ void CDECL error(const char *s, ...)
ShowOSErrorBox(buf, true);
if (_video_driver != NULL) _video_driver->Stop();
/* Don't go into NOT_REACHED here; NOT_REACHED is using error, so
* using it would result in an infinite loop instead of errors. */
assert(0);
exit(1);
/* Set the error message for the crash log and then invoke it. */
CrashLog::SetErrorMessage(buf);
abort();
}
/**