X-Git-Url: https://git.piment-noir.org/?p=Project_algorithmic_C.git;a=blobdiff_plain;f=lib%2Fdebug.c;h=e00ce9f23ca859a2c36ecfd94925066f42ba7bb9;hp=653207954de9478dab789cbc2aeea90cb6efd9eb;hb=658c6acc5900678d8f2a4a31acb407b027c90f4c;hpb=b5e9ccd0c40a658ea3fc8245b3ada821b248daed diff --git a/lib/debug.c b/lib/debug.c index 6532079..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]) { @@ -33,6 +32,10 @@ void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][b } } -/* void dbg_mvprintv(int y, int x, ) { - -} */ +#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