Welcome! Log In Create A New Profile

Advanced

[njs] Fixed njs_assert() macro.

Dmitry Volyntsev
September 29, 2022 08:06PM
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
Subject Author Views Posted

[njs] Fixed njs_assert() macro.

Dmitry Volyntsev 428 September 29, 2022 08:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready