Skip to content

Commit

Permalink
Merge pull request #15 from boingoing/disable_debug_default
Browse files Browse the repository at this point in the history
Disable the debug features by default
  • Loading branch information
boingoing authored Apr 23, 2023
2 parents f462a5d + 5ca3d8d commit 619f3d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions jeznes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
6 changes: 5 additions & 1 deletion jeznes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 619f3d5

Please sign in to comment.