isomatch
debug.h
Go to the documentation of this file.
1 
3 #ifdef DEBUG
4 #define DEBUG_TMP
5 #endif
6 
7 #ifdef DEBUG_ALL
8 #define DEBUG_EQUAL
9 #define DEBUG_FIND
10 #endif
11 
12 /* Debug printing for sub-equality matches */
13 #ifdef DEBUG_EQUAL
14 #define EQ_DEBUG(...) fprintf(stderr, __VA_ARGS__)
15 #else
16 #define EQ_DEBUG(...) do {} while(false)
17 #endif
18 
19 /* Debug printing for subcircuit finding */
20 #ifdef DEBUG_FIND
21 #define FIND_DEBUG(...) fprintf(stderr, __VA_ARGS__)
22 #else
23 #define FIND_DEBUG(...) do {} while(false)
24 #endif
25 
26 /* Debug printing for temporary debug, not meant to last */
27 #ifdef DEBUG_TMP
28 #define TMP_DEBUG(...) fprintf(stderr, __VA_ARGS__)
29 #else
30 #define TMP_DEBUG(...) do {} while(false)
31 #endif