forked from nyetwurk/ME7Sum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.h
More file actions
45 lines (39 loc) · 1.11 KB
/
debug.h
File metadata and controls
45 lines (39 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#define DEBUG_PRINTF_YES printf
#define DEBUG_PRINTF_NO(...)
#define DEBUG_FLUSH_YES printf("\n")
#define DEBUG_FLUSH_NO fflush(stdout)
#define DEBUG_EXIT_YES exit(-1)
#ifdef DEBUG_ROM_INFO
#define DEBUG_ROM DEBUG_PRINTF_YES
#define DEBUG_EXIT_ROM DEBUG_EXIT_YES
#else
#define DEBUG_ROM DEBUG_PRINTF_NO
#define DEBUG_EXIT_ROM
#endif
#ifdef DEBUG_CRC_MATCHING
#define DEBUG_CRC DEBUG_PRINTF_YES
#define DEBUG_FLUSH_CRC DEBUG_FLUSH_YES
#define DEBUG_EXIT_CRC DEBUG_EXIT_YES
#else
#define DEBUG_CRC DEBUG_PRINTF_NO
#define DEBUG_FLUSH_CRC DEBUG_FLUSH_NO
#define DEBUG_EXIT_CRC
#endif
#ifdef DEBUG_MAIN_MATCHING
#define DEBUG_MAIN DEBUG_PRINTF_YES
#define DEBUG_FLUSH_MAIN DEBUG_FLUSH_YES
#define DEBUG_EXIT_MAIN DEBUG_EXIT_YES
#else
#define DEBUG_MAIN DEBUG_PRINTF_NO
#define DEBUG_FLUSH_MAIN DEBUG_FLUSH_NO
#define DEBUG_EXIT_MAIN
#endif
#ifdef DEBUG_MULTIPOINT_MATCHING
#define DEBUG_MULTIPOINT DEBUG_PRINTF_YES
#define DEBUG_FLUSH_MULTIPOINT DEBUG_FLUSH_YES
#define DEBUG_EXIT_MULTIPOINT DEBUG_EXIT_YES
#else
#define DEBUG_MULTIPOINT DEBUG_PRINTF_NO
#define DEBUG_FLUSH_MULTIPOINT DEBUG_FLUSH_NO
#define DEBUG_EXIT_MULTIPOINT
#endif