From 99341d71b4fc9dc6807b7bffb3ce1365d00a28c2 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Wed, 16 Aug 2006 13:28:48 +0000 Subject: [PATCH] Make this easier to read. A crash reason of "7" throws me off. --- stepmania/src/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/global.h b/stepmania/src/global.h index 8b9e6ed657..76f91d1486 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -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))