(svn r17410) -Codechange: use the same define for determining whether windows does crash reports instead of using several that aren't necessarily equal

This commit is contained in:
rubidium
2009-09-03 22:32:08 +00:00
parent 22192d96c2
commit fab411abdc
3 changed files with 25 additions and 34 deletions

View File

@@ -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 :( */