all repos — mgba @ 38ab86fdcb6140fa8e90c2f891bcebd5aade233c

mGBA Game Boy Advance Emulator

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
commit

38ab86fdcb6140fa8e90c2f891bcebd5aade233c

parent

271211846f889e317d4ab2ef84df22129c8313a6

1 files changed, 7 insertions(+), 1 deletions(-)

jump to
M src/gba/gba.hsrc/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 {