Skip to content

Commit 30c883b

Browse files
committed
1 parent 8e00a1f commit 30c883b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

debug.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,15 @@ static void dd(const char* fmt, ...) {
3838

3939
#endif // NGX_DEBUG
4040

41+
#if (NGX_HAVE_VARIADIC_MACROS)
42+
# define log_crit(log, ...) \
43+
ngx_log_error_core(NGX_LOG_CRIT, (log), 0, __VA_ARGS__)
44+
# define crit(...) log_crit(r->connection->log, __VA_ARGS__)
45+
# else
46+
/** TODO
47+
* Warn. user here
48+
*/
49+
static inline void crit(...) {}
50+
#endif // NGX_HAVE_VARIADIC_MACROS
51+
4152
#endif

0 commit comments

Comments
 (0)