diff options
author | rubidium <rubidium@openttd.org> | 2009-09-07 11:10:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-07 11:10:49 +0000 |
commit | 2b144e2ea65e9ffc61b493a94063585c21b17a0e (patch) | |
tree | 4bf125c97b6dd57750015c5952888ebd12d9e2e1 /src/stdafx.h | |
parent | 8186dd616b628d822abad295183c29de3d4b95ab (diff) | |
download | openttd-2b144e2ea65e9ffc61b493a94063585c21b17a0e.tar.xz |
(svn r17450) -Codechange: refactor the windows crash logger so parts of it can be reused by other crash logger implementations
Diffstat (limited to 'src/stdafx.h')
-rw-r--r-- | src/stdafx.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index bd9caf0fa..35cbc8b1b 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -230,12 +230,9 @@ #endif - #if defined(WIN32_EXCEPTION_TRACKER) - void SetExceptionString(const char *s, ...) WARN_FORMAT(1, 2); - #if defined(NDEBUG) && defined(WITH_ASSERT) - #undef assert - #define assert(expression) if (!(expression)) { SetExceptionString("Assertion failed at %s:%d: %s", __FILE__, __LINE__, #expression); *(byte*)0 = 0; } - #endif + #if defined(NDEBUG) && defined(WITH_ASSERT) + #undef assert + #define assert(expression) if (!(expression)) error("Assertion failed at line %i of %s: %s", __LINE__, __FILE__, #expression); #endif /* MSVC doesn't have these :( */ |