From 5ca3d8d1c15d788afcf5acc6b3e935258cb0eec0 Mon Sep 17 00:00:00 2001 From: Taylor Woll Date: Sun, 23 Apr 2023 09:03:03 -0700 Subject: [PATCH] Disable the debug features by default --- jeznes.c | 2 -- jeznes.h | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/jeznes.c b/jeznes.c index db0a129..a18514d 100644 --- a/jeznes.c +++ b/jeznes.c @@ -112,11 +112,9 @@ void main(void) { } } -#if DEBUG #if DRAW_GRAY_LINE // For debugging, render a line indicating how much CPU is used. gray_line(); -#endif #endif } } diff --git a/jeznes.h b/jeznes.h index 6276df2..aa74499 100644 --- a/jeznes.h +++ b/jeznes.h @@ -56,9 +56,13 @@ #define GAME_OVER_CURSOR_QUIT_Y 0xd0 // These macros enable various debugging features and should probably be turned off before release -#define DEBUG 1 +#define DEBUG 0 + +// DEBUG macro gates all the debug features +#if DEBUG #define DRAW_GRAY_LINE 1 #define DRAW_BALL_NEAREST_TILE_HIGHLIGHT 1 +#endif enum { GAME_STATE_TITLE,