Make this easier to read. A crash reason of "7" throws me off.
This commit is contained in:
@@ -106,7 +106,7 @@ void NORETURN sm_crash( const char *reason = "Internal error" );
|
||||
#endif
|
||||
|
||||
/* Use this to catch switching on invalid values */
|
||||
#define DEFAULT_FAIL(i) default: FAIL_M( ssprintf("%i", i) )
|
||||
#define DEFAULT_FAIL(i) default: FAIL_M( ssprintf("%s = %i", #i, (i)) )
|
||||
|
||||
void ShowWarning( const char *file, int line, const char *message ); // don't pull in LOG here
|
||||
#define WARN(MESSAGE) (ShowWarning(__FILE__, __LINE__, MESSAGE))
|
||||
|
||||
Reference in New Issue
Block a user