From 38ab86fdcb6140fa8e90c2f891bcebd5aade233c Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 20 Nov 2014 05:57:03 -0800 Subject: [PATCH] GBA: Add DANGER level, which is ERROR in release and FATAL in debug --- src/gba/gba.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gba/gba.h b/src/gba/gba.h index bae458ee2..6c2f6c98e 100644 --- a/src/gba/gba.h +++ b/src/gba/gba.h @@ -46,7 +46,13 @@ enum GBALogLevel { GBA_LOG_GAME_ERROR = 0x100, GBA_LOG_SWI = 0x200, - GBA_LOG_ALL = 0x33F + GBA_LOG_ALL = 0x33F, + +#ifdef NDEBUG + GBA_LOG_DANGER = GBA_LOG_ERROR +#else + GBA_LOG_DANGER = GBA_LOG_FATAL +#endif }; enum GBAKey {