@@ -53,6 +53,15 @@ int dX_printf (int , const char* , ...);
53
53
#endif
54
54
* ----------------- */
55
55
56
+ #define D_E (x ) { x }
57
+ #define D_0 (x ) { x }
58
+
59
+ #if _DEBUG_LVL_COMPILE >= 1
60
+ # define D_1 (x ) { if ((DEBUG_LVL&15) >= 1) { x; } }
61
+ #else
62
+ # define D_1 (x ) {}
63
+ #endif
64
+
56
65
#if _DEBUG_LVL_COMPILE >= 2
57
66
# define D_2 (x ) if ((DEBUG_LVL&15) >= 2) { x }
58
67
# define D_2E (x ) if ((DEBUG_LVL&15) == 2) { x }
@@ -63,6 +72,24 @@ int dX_printf (int , const char* , ...);
63
72
# define DM_2 (x ) {}
64
73
#endif
65
74
75
+ #if _DEBUG_LVL_COMPILE >= 6
76
+ # define D_6 (x ) if ((DEBUG_LVL&15) >= 6) { x }
77
+ #else
78
+ # define D_6 (x ) {}
79
+ #endif
80
+
81
+ #if _DEBUG_LVL_COMPILE >= 7
82
+ # define D_7 (x ) if ((DEBUG_LVL&15) >= 7) { x }
83
+ #else
84
+ # define D_7 (x ) {}
85
+ #endif
86
+
87
+ #if _DEBUG_LVL_COMPILE >= 8
88
+ # define D_8 (x ) if ((DEBUG_LVL&15) >= 8) { x }
89
+ #else
90
+ # define D_8 (x ) {}
91
+ #endif
92
+
66
93
#if _DEBUG_LVL_COMPILE >= 9
67
94
# define D_9 (x ) if ((DEBUG_LVL&15) >= 9) { x }
68
95
# define TB_9 (x ) D_9(if(ite_counters[NUM_BACKTRACKS]>=TRACE_START) { x })
@@ -77,11 +104,26 @@ int dX_printf (int , const char* , ...);
77
104
# define D_C (x ) {}
78
105
#endif
79
106
107
+ #define dE_printf1 (x ) D_E(fprintf(stddbg, x);)
108
+ #define dE_printf2 (x1 ,x2 ) D_E(fprintf(stddbg, x1, x2);)
109
+ #define dE_printf3 (x1 ,x2 ,x3 ) D_E(fprintf(stddbg, x1, x2, x3);)
110
+ #define dE_printf4 (x1 ,x2 ,x3 ,x4 ) D_E(fprintf(stddbg, x1, x2, x3,x4);)
111
+
80
112
#define dC_printf1 (x ) D_C(printf(x);)
81
113
#define dC_printf2 (x1 ,x2 ) D_C(printf(x1, x2);)
82
114
#define dC_printf3 (x1 ,x2 ,x3 ) D_C(printf(x1, x2, x3);)
83
115
#define dC_printf4 (x1 ,x2 ,x3 ,x4 ) D_C(printf(x1, x2, x3,x4);)
84
116
117
+ #define d0_printf1 (x ) D_0(fprintf(stddbg, x);)
118
+ #define d0_printf2 (x1 ,x2 ) D_0(fprintf(stddbg, x1, x2);)
119
+ #define d0_printf3 (x1 ,x2 ,x3 ) D_0(fprintf(stddbg, x1, x2, x3);)
120
+ #define d0_printf4 (x1 ,x2 ,x3 ,x4 ) D_0(fprintf(stddbg, x1, x2, x3,x4);)
121
+
122
+ #define d1_printf1 (x ) D_1(fprintf(stddbg, x);)
123
+ #define d1_printf2 (x1 ,x2 ) D_1(fprintf(stddbg, x1, x2);)
124
+ #define d1_printf3 (x1 ,x2 ,x3 ) D_1(fprintf(stddbg, x1, x2, x3);)
125
+ #define d1_printf4 (x1 ,x2 ,x3 ,x4 ) D_1(fprintf(stddbg, x1, x2, x3,x4);)
126
+
85
127
#define d2_printf1 (x ) D_2(fprintf(stddbg, x);)
86
128
#define d2_printf2 (x1 ,x2 ) D_2(fprintf(stddbg, x1, x2);)
87
129
#define d2_printf3 (x1 ,x2 ,x3 ) D_2(fprintf(stddbg, x1, x2, x3);)
@@ -100,6 +142,36 @@ int dX_printf (int , const char* , ...);
100
142
101
143
#define dm2_printf2 (x1 ,x2 ) DM_2(fprintf(stddbg, x1, x2);)
102
144
145
+ #define d6_printf1 (x ) D_6(fprintf(stddbg, x);)
146
+ #define d6_printf2 (x1 ,x2 ) D_6(fprintf(stddbg, x1, x2);)
147
+ #define d6_printf3 (x1 ,x2 ,x3 ) D_6(fprintf(stddbg, x1, x2, x3);)
148
+ #define d6_printf4 (x1 ,x2 ,x3 ,x4 ) D_6(fprintf(stddbg, x1, x2, x3,x4);)
149
+ #define d6_printf5 (x1 ,x2 ,x3 ,x4 ,x5 ) D_6(fprintf(stddbg, x1, x2, x3,x4,x5);)
150
+ #define d6_printf6 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ) D_6(fprintf(stddbg, x1, x2, x3,x4,x5,x6);)
151
+ #define d6_printf7 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ,x7 ) D_6(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7);)
152
+ #define d6_printf8 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ,x7 ,x8 ) D_6(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8);)
153
+ #define d6_printf9 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ,x7 ,x8 ,x9 ) D_6(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8,x9);)
154
+
155
+ #define d7_printf1 (x ) D_7(fprintf(stddbg, x);)
156
+ #define d7_printf2 (x1 ,x2 ) D_7(fprintf(stddbg, x1, x2);)
157
+ #define d7_printf3 (x1 ,x2 ,x3 ) D_7(fprintf(stddbg, x1, x2, x3);)
158
+ #define d7_printf4 (x1 ,x2 ,x3 ,x4 ) D_7(fprintf(stddbg, x1, x2, x3,x4);)
159
+ #define d7_printf5 (x1 ,x2 ,x3 ,x4 ,x5 ) D_7(fprintf(stddbg, x1, x2, x3,x4,x5);)
160
+ #define d7_printf6 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ) D_7(fprintf(stddbg, x1, x2, x3,x4,x5,x6);)
161
+ #define d7_printf7 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ,x7 ) D_7(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7);)
162
+ #define d7_printf8 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ,x7 ,x8 ) D_7(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8);)
163
+ #define d7_printf9 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ,x7 ,x8 ,x9 ) D_7(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8,x9);)
164
+
165
+ #define d8_printf1 (x ) D_8(fprintf(stddbg, x);)
166
+ #define d8_printf2 (x1 ,x2 ) D_8(fprintf(stddbg, x1, x2);)
167
+ #define d8_printf3 (x1 ,x2 ,x3 ) D_8(fprintf(stddbg, x1, x2, x3);)
168
+ #define d8_printf4 (x1 ,x2 ,x3 ,x4 ) D_8(fprintf(stddbg, x1, x2, x3,x4);)
169
+ #define d8_printf5 (x1 ,x2 ,x3 ,x4 ,x5 ) D_8(fprintf(stddbg, x1, x2, x3,x4,x5);)
170
+ #define d8_printf6 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ) D_8(fprintf(stddbg, x1, x2, x3,x4,x5,x6);)
171
+ #define d8_printf7 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ,x7 ) D_8(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7);)
172
+ #define d8_printf8 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ,x7 ,x8 ) D_8(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8);)
173
+ #define d8_printf9 (x1 ,x2 ,x3 ,x4 ,x5 ,x6 ,x7 ,x8 ,x9 ) D_8(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8,x9);)
174
+
103
175
#define d9_printf1 (x ) D_9(fprintf(stddbg, x);)
104
176
#define d9_printf2 (x1 ,x2 ) D_9(fprintf(stddbg, x1, x2);)
105
177
#define d9_printf3 (x1 ,x2 ,x3 ) D_9(fprintf(stddbg, x1, x2, x3);)
0 commit comments