mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 07:48:10 +02:00
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:
parent
08262ce372
commit
7483dfd7c4
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ _nm_assert_fail_internal(const char *assertion,
|
||||||
#define _NM_ASSERT_FAIL_ENABLED 1
|
#define _NM_ASSERT_FAIL_ENABLED 1
|
||||||
#define _nm_assert_fail(msg) __assert_fail((msg), __FILE__, __LINE__, __func__)
|
#define _nm_assert_fail(msg) __assert_fail((msg), __FILE__, __LINE__, __func__)
|
||||||
#else
|
#else
|
||||||
#define _NM_ASSERT_FAIL_ENABLED 1
|
#define _NM_ASSERT_FAIL_ENABLED 0
|
||||||
#define _nm_assert_fail(msg) \
|
#define _nm_assert_fail(msg) \
|
||||||
do { \
|
do { \
|
||||||
_nm_unused const char *_msg = (msg); \
|
_nm_unused const char *_msg = (msg); \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue