Code cleanup on the shot validation path
[Project_algorithmic_C.git] / lib / debug.c
index e00ce9f23ca859a2c36ecfd94925066f42ba7bb9..e6631c6462592998255b3f784d5959f20eb4ff1f 100644 (file)
@@ -21,6 +21,7 @@
 #include "othello.h"
 #include "debug.h"
 
+#if DEBUG
 void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]) {
 
     for (int i = 1; i <= board_size; i++) {
@@ -31,11 +32,6 @@ void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][b
         }
     }
 }
-
-#if BUILD_TYPE == debug
-void dbg_mvprintv(int y, int x, char* debug_text) {
-    mvprintw(y, x, debug_text);
-}
 #else
-void dbg_mvprintv(int y, int x, char* debug_text) { }
-#endif
+void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]) { }
+#endif /* DEBUG */