diff options
author | Thomas Haller <thaller@redhat.com> | 2016-03-16 14:50:23 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-03-17 15:00:48 +0100 |
commit | a50d28d4dd28f7f41b831eac12e0f40b0464e8b7 (patch) | |
tree | 07a94954e5da5bb4d76dffc45d8e613ee6c34245 | |
parent | ab2456493dff0eb08b45e98220dfcb1532ddc79e (diff) | |
download | NetworkManager-a50d28d4dd28f7f41b831eac12e0f40b0464e8b7.tar.gz |
shared: add nm_assert_not_reached()
-rw-r--r-- | shared/nm-macros-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/nm-macros-internal.h b/shared/nm-macros-internal.h index 1f638bab18..1eedadded9 100644 --- a/shared/nm-macros-internal.h +++ b/shared/nm-macros-internal.h @@ -287,8 +287,10 @@ _NM_IN_STRSET_streq (const char *x, const char *s) #if NM_MORE_ASSERTS #define nm_assert(cond) G_STMT_START { g_assert (cond); } G_STMT_END +#define nm_assert_not_reached() G_STMT_START { g_assert_not_reached (); } G_STMT_END #else #define nm_assert(cond) G_STMT_START { if (FALSE) { if (cond) { } } } G_STMT_END +#define nm_assert_not_reached() G_STMT_START { ; } G_STMT_END #endif /*****************************************************************************/ |