Mercurial > hg > nginx-quic
comparison src/core/ngx_log.h @ 4397:d3000365ac65
Changed ngx_log_debugN() macros to verify the number of arguments
when built with debugging.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 10 Jan 2012 07:28:32 +0000 |
parents | f72496073689 |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
4396:eaace502bdf6 | 4397:d3000365ac65 |
---|---|
119 | 119 |
120 #if (NGX_DEBUG) | 120 #if (NGX_DEBUG) |
121 | 121 |
122 #if (NGX_HAVE_VARIADIC_MACROS) | 122 #if (NGX_HAVE_VARIADIC_MACROS) |
123 | 123 |
124 #define ngx_log_debug0 ngx_log_debug | 124 #define ngx_log_debug0(level, log, err, fmt) \ |
125 #define ngx_log_debug1 ngx_log_debug | 125 ngx_log_debug(level, log, err, fmt) |
126 #define ngx_log_debug2 ngx_log_debug | 126 |
127 #define ngx_log_debug3 ngx_log_debug | 127 #define ngx_log_debug1(level, log, err, fmt, arg1) \ |
128 #define ngx_log_debug4 ngx_log_debug | 128 ngx_log_debug(level, log, err, fmt, arg1) |
129 #define ngx_log_debug5 ngx_log_debug | 129 |
130 #define ngx_log_debug6 ngx_log_debug | 130 #define ngx_log_debug2(level, log, err, fmt, arg1, arg2) \ |
131 #define ngx_log_debug7 ngx_log_debug | 131 ngx_log_debug(level, log, err, fmt, arg1, arg2) |
132 #define ngx_log_debug8 ngx_log_debug | 132 |
133 #define ngx_log_debug3(level, log, err, fmt, arg1, arg2, arg3) \ | |
134 ngx_log_debug(level, log, err, fmt, arg1, arg2, arg3) | |
135 | |
136 #define ngx_log_debug4(level, log, err, fmt, arg1, arg2, arg3, arg4) \ | |
137 ngx_log_debug(level, log, err, fmt, arg1, arg2, arg3, arg4) | |
138 | |
139 #define ngx_log_debug5(level, log, err, fmt, arg1, arg2, arg3, arg4, arg5) \ | |
140 ngx_log_debug(level, log, err, fmt, arg1, arg2, arg3, arg4, arg5) | |
141 | |
142 #define ngx_log_debug6(level, log, err, fmt, \ | |
143 arg1, arg2, arg3, arg4, arg5, arg6) \ | |
144 ngx_log_debug(level, log, err, fmt, \ | |
145 arg1, arg2, arg3, arg4, arg5, arg6) | |
146 | |
147 #define ngx_log_debug7(level, log, err, fmt, \ | |
148 arg1, arg2, arg3, arg4, arg5, arg6, arg7) \ | |
149 ngx_log_debug(level, log, err, fmt, \ | |
150 arg1, arg2, arg3, arg4, arg5, arg6, arg7) | |
151 | |
152 #define ngx_log_debug8(level, log, err, fmt, \ | |
153 arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \ | |
154 ngx_log_debug(level, log, err, fmt, \ | |
155 arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) | |
133 | 156 |
134 | 157 |
135 #else /* NO VARIADIC MACROS */ | 158 #else /* NO VARIADIC MACROS */ |
136 | 159 |
137 #define ngx_log_debug0(level, log, err, fmt) \ | 160 #define ngx_log_debug0(level, log, err, fmt) \ |