X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Fdebug.c;h=e00ce9f23ca859a2c36ecfd94925066f42ba7bb9;hb=658c6acc5900678d8f2a4a31acb407b027c90f4c;hp=c7f4dfb48635cd174290557a6397c9d4c3938c62;hpb=a80646b74eca11c71696dedeb674870437c5bb6f;p=Project_algorithmic_C.git diff --git a/lib/debug.c b/lib/debug.c index c7f4dfb..e00ce9f 100644 --- a/lib/debug.c +++ b/lib/debug.c @@ -19,7 +19,6 @@ #include #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