We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa0959c commit 93add63Copy full SHA for 93add63
hdr/debug.h
@@ -44,6 +44,16 @@
44
#endif
45
46
47
+
48
+/* assert macro */
49
+#ifdef DEBUG
50
+VOID panic(BYTE * s);
51
+#define assert(condition) (void)(!(condition)?panic(#condition),0:0)
52
+#else
53
+#define assert(condition) /* ((void)0) */
54
+#endif
55
56
57
/* use to limit output to debug builds */
58
#ifdef DEBUG
59
#ifdef DEBUG_PRINT_COMPORT
@@ -117,7 +127,9 @@
117
127
118
128
119
129
/* debug truename */
120
-/* #define DEBUG_TRUENAME */
130
131
+#define DEBUG_TRUENAME
132
121
133
#ifdef DEBUG_TRUENAME
122
134
#define tn_printf(x) DebugPrintf(x)
123
135
#else
0 commit comments