diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-07-09 13:56:24 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-07-09 14:05:19 +0700 |
commit | e2425485c4b9ab2be9acee0102ea9044576052ba (patch) | |
tree | 833e3921936c8c9658c4a5d382330935834615fa /include/osmocom/core | |
parent | 4e284b637943980a405a8c44f2712b749ded428f (diff) |
Revert "utils.h: require a semi colon after OSMO_ASSERT"
This reverts commit 4e284b637943980a405a8c44f2712b749ded428f.
Unfortunately, some projects such as OsmoMSC, OsmoBTS and OpenBSC
do contain OSMO_ASSERT statements without a semi colon. Thus,
this change causes compilation errors when building them.
Please note that only the OSMO_ASSERT's definition is reverted,
while changes to other files (adding missing semicolons) are kept.
Change-Id: I6da4d7397d993f6c1af658cb5ae1e49c92a1b350
Diffstat (limited to 'include/osmocom/core')
-rw-r--r-- | include/osmocom/core/utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h index 8585a6a9..601bb565 100644 --- a/include/osmocom/core/utils.h +++ b/include/osmocom/core/utils.h @@ -98,9 +98,9 @@ do { \ * the predicate evaluates to false (0). */ #define OSMO_ASSERT(exp) \ - do if (!(exp)) { \ + if (!(exp)) { \ osmo_panic("Assert failed %s %s:%d\n", #exp, __FILE__, __LINE__); \ - } while(0) + } /*! duplicate a string using talloc and release its prior content (if any) * \param[in] ctx Talloc context to use for allocation |