From b47a999dee9ee7a0d2e7b0c4d1cf25282abfa71a Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 10 Mar 2019 21:22:23 +1300 Subject: Clean-up --- debug.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 debug.h (limited to 'debug.h') diff --git a/debug.h b/debug.h new file mode 100644 index 0000000..df0fcba --- /dev/null +++ b/debug.h @@ -0,0 +1,15 @@ +#ifndef SUDOKU_DEBUG_H +#define SUDOKU_DEBUG_H + +#include + +#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 */ -- cgit v1.1