projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f83f9c
)
[priv] add AUBIO_GOTO_FAILURE helper
author
Paul Brossier
<piem@piem.org>
Mon, 31 Dec 2018 16:14:00 +0000
(17:14 +0100)
committer
Paul Brossier
<piem@piem.org>
Wed, 29 Dec 2021 16:51:45 +0000
(11:51 -0500)
src/aubio_priv.h
patch
|
blob
|
history
diff --git
a/src/aubio_priv.h
b/src/aubio_priv.h
index
8cb6756
..
99dd299
100644
(file)
--- a/
src/aubio_priv.h
+++ b/
src/aubio_priv.h
@@
-409,4
+409,7
@@
uint_t aubio_log(sint_t level, const char_t *fmt, ...);
#define AUBIO_ASSERT(x)
#endif /* DEBUG */
+// goto to failure if condition x is not true
+#define AUBIO_GOTO_FAILURE(x) if (!(x)) goto failure
+
#endif /* AUBIO_PRIV_H */