mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 10:00:07 +01:00
glib-aux: add nm_assert_is_ternary() helper
This commit is contained in:
parent
881b42c454
commit
dc89f466ff
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ typedef enum _nm_packed {
|
|||
NM_OPTION_BOOL_TRUE = 1,
|
||||
} NMOptionBool;
|
||||
|
||||
#define nm_assert_is_ternary(value) nm_assert(NM_IN_SET((value), -1, 0, 1))
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static inline gboolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue