gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 02/02: mhd_assert: added check for both _DEBUG and NDEBU


From: gnunet
Subject: [libmicrohttpd] 02/02: mhd_assert: added check for both _DEBUG and NDEBUG defined
Date: Tue, 24 Aug 2021 11:38:57 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 6621c055572524f5f247cd200ff7291c161f8b87
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Aug 24 10:59:10 2021 +0300

    mhd_assert: added check for both _DEBUG and NDEBUG defined
---
 src/microhttpd/mhd_assert.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/microhttpd/mhd_assert.h b/src/microhttpd/mhd_assert.h
index 427070eb..6113646f 100644
--- a/src/microhttpd/mhd_assert.h
+++ b/src/microhttpd/mhd_assert.h
@@ -34,6 +34,9 @@
 #if ! deifned(_DEBUG) && ! defined(NDEBUG)
 #define NDEBUG 1 /* Use NDEBUG by default */
 #endif /* !_DEBUG && !NDEBUG */
+#if deifned(_DEBUG) && defined(NDEBUG)
+#error Both _DEBUG and NDEBUG are defined
+#endif /* _DEBUG && NDEBUG */
 #ifdef NDEBUG
 #  define mhd_assert(ignore) ((void) 0)
 #else  /* _DEBUG */

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]