X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Fdebug.h;h=71f88eda9d1ee87b50572c92d261e2d83bc9b40b;hb=3243371edb8b286cf832c512e63f302dad6e1de2;hp=eb6c64eb9aa38a308ef8ec33e83d70ade74d4dbe;hpb=54f1c58cef6764fdd611eedc267e7491e777c09b;p=Project_algorithmic_C.git diff --git a/lib/debug.h b/lib/debug.h index eb6c64e..71f88ed 100644 --- a/lib/debug.h +++ b/lib/debug.h @@ -16,6 +16,19 @@ * ===================================================================================== */ +#ifndef DEBUG_H +#define DEBUG_H + #include -void dbg_mvprintw(int base_y, int base_x, const char* fmt, va_list varglist); +#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 */