| 1 | /* |
| 2 | * ===================================================================================== |
| 3 | * |
| 4 | * Filename: debug.h |
| 5 | * |
| 6 | * Description: Header for debugging functions |
| 7 | * |
| 8 | * Version: 1.0 |
| 9 | * Created: 27/04/2017 13:01:31 |
| 10 | * Revision: none |
| 11 | * Compiler: gcc |
| 12 | * |
| 13 | * Author: Jerome Benoit (fraggle), jerome.benoit@piment-noir.org |
| 14 | * Organization: Piment Noir |
| 15 | * |
| 16 | * ===================================================================================== |
| 17 | */ |
| 18 | |
| 19 | #ifndef DEBUG_H |
| 20 | #define DEBUG_H |
| 21 | |
| 22 | #include <ncurses.h> |
| 23 | |
| 24 | #include "constants.h" |
| 25 | |
| 26 | #if DEBUG |
| 27 | #define dbg_mvprintw(...) mvprintw(__VA_ARGS__) |
| 28 | #else |
| 29 | #define dbg_mvprintw(...) { } |
| 30 | #endif /* DEBUG */ |
| 31 | |
| 32 | void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]); |
| 33 | |
| 34 | #endif /* DEBUG_H */ |