Implement some basic debug printing function.
[Project_algorithmic_C.git] / lib / debug.c
index c7f4dfb48635cd174290557a6397c9d4c3938c62..e00ce9f23ca859a2c36ecfd94925066f42ba7bb9 100644 (file)
@@ -19,7 +19,6 @@
 #include <string.h>
 
 #include "othello.h"
-#include "constants.h"
 #include "debug.h"
 
 void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]) {
@@ -32,3 +31,11 @@ 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