From 1b435bd2b7eb0bec100ac29f9c885c50f238ea2d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 8 Sep 2002 23:30:23 +0000 Subject: [PATCH] Make RAGE_ASSERT the default assert handler. --- stepmania/src/RageException.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/RageException.h b/stepmania/src/RageException.h index 76e2ffe537..de39d26c97 100644 --- a/stepmania/src/RageException.h +++ b/stepmania/src/RageException.h @@ -34,4 +34,10 @@ protected: #define RAGE_ASSERT_M(COND, MESSAGE) { if(!(COND)) { VDCHECKPOINT_M(MESSAGE); *(char*)0=0; } } #define RAGE_ASSERT(COND) RAGE_ASSERT_M((COND), "Assertion failure") +/* Make this the default assert handler. */ +#ifdef ASSERT +#undef ASSERT +#endif +#define ASSERT RAGE_ASSERT + #endif