summaryrefslogtreecommitdiff
path: root/debug.h
blob: df0fcbaf152ba9db49eb7b0bb1b1a7d0b847a51e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef SUDOKU_DEBUG_H
#define SUDOKU_DEBUG_H

#include <stdio.h>

#define NAME_CELL(x,y) ("ABCDEFGHI"[(x)]), ("123456789"[(y)])

//#define DEBUG
#ifdef DEBUG
# define DEBUG_LOG(args...)     printf(args)
#else
# define DEBUG_LOG(...)
#endif

#endif /* SUDOKU_DEBUG_H */