Simplify the debugging functions
[Project_algorithmic_C.git] / lib / debug.h
CommitLineData
54f1c58c
JB
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
658c6acc
JB
19#ifndef DEBUG_H
20#define DEBUG_H
21
54f1c58c
JB
22#include <ncurses.h>
23
658c6acc 24#include "constants.h"
21e06607 25
c8c562de
JB
26#if DEBUG
27#define dbg_mvprintw(...) mvprintw(__VA_ARGS__)
28#else
29#define dbg_mvprintw(...) { }
30#endif /* DEBUG */
31
a80646b7 32void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]);
658c6acc
JB
33
34#endif /* DEBUG_H */