reenable assert checking

This commit is contained in:
Glenn Maynard
2002-12-03 01:26:36 +00:00
parent 1dd92fe563
commit 2969a13de4
3 changed files with 13 additions and 18 deletions
-16
View File
@@ -26,20 +26,4 @@ protected:
CString m_sError;
};
//#include "crash.h"
/* Assertion that sets an optional message and brings up the crash handler, so
* we get a backtrace. This should probably be used instead of throwing an
* exception in most cases we expect never to happen (but not in cases that
* we do expect, such as d3d init failure.) */
//#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(x) ;
#endif
+13
View File
@@ -46,6 +46,19 @@
using namespace std;
/* Assertion that sets an optional message and brings up the crash handler, so
* we get a backtrace. This should probably be used instead of throwing an
* exception in most cases we expect never to happen (but not in cases that
* 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")
/* Make this the default assert handler. */
#ifdef ASSERT
#undef ASSERT
#endif
#define ASSERT RAGE_ASSERT
#if 1
-2
View File
@@ -369,8 +369,6 @@ inline const Type& SSMAX(const Type& arg1, const Type& arg2)
#endif
#endif // #ifndef W32BASE_H
#undef ASSERT
#define ASSERT(x) ;
// Standard headers needed