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))