(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

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