GBA: Add DANGER level, which is ERROR in release and FATAL in debug
Jeffrey Pfau jeffrey@endrift.com
Thu, 20 Nov 2014 05:57:03 -0800
1 files changed,
7 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba.h
→
src/gba/gba.h
@@ -46,7 +46,13 @@
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 {