We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e00a1f commit 30c883bCopy full SHA for 30c883b
debug.h
@@ -38,4 +38,15 @@ static void dd(const char* fmt, ...) {
38
39
#endif // NGX_DEBUG
40
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
+
52
#endif
0 commit comments