summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-03 22:32:08 +0000
committerrubidium <rubidium@openttd.org>2009-09-03 22:32:08 +0000
commitc9a1f3341885ec1738f3e164df5318ee5d838340 (patch)
tree2d051a519b5ce9d40f3e692aadeda8980503a750 /src/stdafx.h
parentb92143b53e0536a60e67e18c39fa2429daca2e33 (diff)
downloadopenttd-c9a1f3341885ec1738f3e164df5318ee5d838340.tar.xz
(svn r17410) -Codechange: use the same define for determining whether windows does crash reports instead of using several that aren't necessarily equal
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index abc9b684b..bd9caf0fa 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -229,11 +229,13 @@
#define strncasecmp strnicmp
#endif
- 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; }
+ #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
#endif
/* MSVC doesn't have these :( */