mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
utils: fix spa_assert_se
This commit is contained in:
parent
9e6a047788
commit
98780cdbe1
1 changed files with 2 additions and 1 deletions
|
|
@ -203,10 +203,11 @@ struct spa_fraction {
|
|||
* i.e. is never optimized away, regardless of NDEBUG or FASTPATH. */
|
||||
#define spa_assert_se(expr) \
|
||||
do { \
|
||||
if (SPA_UNLIKELY(!(expr))) \
|
||||
if (SPA_UNLIKELY(!(expr))) { \
|
||||
fprintf(stderr, "'%s' failed at %s:%u %s()\n", \
|
||||
#expr , __FILE__, __LINE__, __func__); \
|
||||
abort(); \
|
||||
} \
|
||||
} while (false)
|
||||
|
||||
#define spa_assert(expr) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue