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