commit 6621c055572524f5f247cd200ff7291c161f8b87
parent bacd53ecfcdbf0d220fb70686c5784a1dbb230b5
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 24 Aug 2021 10:59:10 +0300
mhd_assert: added check for both _DEBUG and NDEBUG defined
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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 */