details: https://hg.nginx.org/njs/rev/b61a7a4f286e
branches:
changeset: 1971:b61a7a4f286e
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Thu Sep 29 16:32:52 2022 -0700
description:
Fixed njs_assert() macro.
Previously, the argument was always evaluated, even if
NJS_DEBUG was undefined.
diffstat:
src/njs_assert.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 7f43ac9cdc30 -r b61a7a4f286e src/njs_assert.h
--- a/src/njs_assert.h Thu Sep 29 16:32:45 2022 -0700
+++ b/src/njs_assert.h Thu Sep 29 16:32:52 2022 -0700
@@ -29,8 +29,8 @@
#else
-#define njs_assert(condition) (void) (condition)
-#define njs_assert_msg(condition, fmt, ...) (void) (condition)
+#define njs_assert(condition)
+#define njs_assert_msg(condition, fmt, ...)
#endif
_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org