Simplify the debugging functions
[Project_algorithmic_C.git] / lib / debug.h
index e87809de4f6109f180f8d4144bca845ee0552f1e..71f88eda9d1ee87b50572c92d261e2d83bc9b40b 100644 (file)
 #include <ncurses.h>
 
 #include "constants.h"
+
+#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 */