GBA: Add DANGER level, which is ERROR in release and FATAL in debug

This commit is contained in:
Jeffrey Pfau 2014-11-20 05:57:03 -08:00
parent 271211846f
commit 38ab86fdcb
1 changed files with 7 additions and 1 deletions

View File

@ -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 {