std-aux: fix _NM_ASSERT_FAIL_ENABLED for plain assert() and NDEBUG
Fixes: 8e3299498d
('std-aux,glib-aux: rework nm_assert() implementations')
This commit is contained in:
@@ -226,7 +226,7 @@ _nm_assert_fail_internal(const char *assertion,
|
||||
#define _NM_ASSERT_FAIL_ENABLED 1
|
||||
#define _nm_assert_fail(msg) __assert_fail((msg), __FILE__, __LINE__, __func__)
|
||||
#else
|
||||
#define _NM_ASSERT_FAIL_ENABLED 1
|
||||
#define _NM_ASSERT_FAIL_ENABLED 0
|
||||
#define _nm_assert_fail(msg) \
|
||||
do { \
|
||||
_nm_unused const char *_msg = (msg); \
|
||||
|
Reference in New Issue
Block a user