reenable assert checking
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user