repositories
/
Project_algorithmic_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify the debugging functions
[Project_algorithmic_C.git]
/
lib
/
debug.h
diff --git
a/lib/debug.h
b/lib/debug.h
index b8327fff6ae50fd36c4fd983ffbd8344177419d2..71f88eda9d1ee87b50572c92d261e2d83bc9b40b 100644
(file)
--- a/
lib/debug.h
+++ b/
lib/debug.h
@@
-23,7
+23,12
@@
#include "constants.h"
#include "constants.h"
-void dbg_mvprintw(int y, int x, const char* debug_text, ...);
+#if DEBUG
+#define dbg_mvprintw(...) mvprintw(__VA_ARGS__)
+#else
+#define dbg_mvprintw(...) { }
+#endif /* DEBUG */
+
void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]);
#endif /* DEBUG_H */
void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]);
#endif /* DEBUG_H */