rename crash() to sm_crash() to fix conflicting symbols.

This commit is contained in:
Steve Checkoway
2004-01-21 04:43:38 +00:00
parent d5db243378
commit 7f76e630c5
+2 -2
View File
@@ -87,13 +87,13 @@ namespace Checkpoints
#endif
/* The infinite loop isn't actually reached; it's just there to shut up a warning. */
static inline void NORETURN crash() { *(char*)0=0; while(1) ; }
static inline void NORETURN sm_crash() { *(char*)0=0; while(1) ; }
/* 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 DSound init failure.) */
#define FAIL_M(MESSAGE) { CHECKPOINT_M(MESSAGE); crash(); }
#define FAIL_M(MESSAGE) { CHECKPOINT_M(MESSAGE); sm_crash(); }
#define ASSERT_M(COND, MESSAGE) { if(!(COND)) { FAIL_M(MESSAGE); } }
#define ASSERT(COND) ASSERT_M((COND), "Assertion '" #COND "' failed")