improve assertion reporting

This commit is contained in:
Glenn Maynard
2003-01-19 20:53:48 +00:00
parent 3d5bfc8a46
commit 2e10cb86df
+1 -1
View File
@@ -59,7 +59,7 @@ using namespace std;
* we do expect, such as d3d init failure.) */
#include "crash.h"
#define RAGE_ASSERT_M(COND, MESSAGE) { if(!(COND)) { VDCHECKPOINT_M(MESSAGE); *(char*)0=0; } }
#define RAGE_ASSERT(COND) RAGE_ASSERT_M((COND), "Assertion failure")
#define RAGE_ASSERT(COND) RAGE_ASSERT_M((COND), "Assertion '" #COND "' failed")
/* Make this the default assert handler. */
#define ASSERT RAGE_ASSERT