projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be3164d
)
[aubio_priv.h] add AUBIO_UNUSED
author
Paul Brossier
<piem@piem.org>
Mon, 27 Dec 2021 00:40:18 +0000
(19:40 -0500)
committer
Paul Brossier
<piem@piem.org>
Wed, 29 Dec 2021 16:52:03 +0000
(11:52 -0500)
src/aubio_priv.h
patch
|
blob
|
history
diff --git
a/src/aubio_priv.h
b/src/aubio_priv.h
index
ae51822
..
6aee913
100644
(file)
--- a/
src/aubio_priv.h
+++ b/
src/aubio_priv.h
@@
-407,6
+407,12
@@
uint_t aubio_log(sint_t level, const char_t *fmt, ...);
#endif /* __STRICT_ANSI__ */
#if defined(DEBUG)
+#define AUBIO_UNUSED(x) {}
+#else
+#define AUBIO_UNUSED(x) (void)(x)
+#endif
+
+#if defined(DEBUG)
#include <assert.h>
#define AUBIO_ASSERT(x) assert(x)
#else