projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e4c6c76
)
[lib] add AUBIO_ASSERT for debug mode
author
Paul Brossier
<piem@piem.org>
Sun, 16 Dec 2018 18:11:19 +0000
(19:11 +0100)
committer
Paul Brossier
<piem@piem.org>
Sun, 16 Dec 2018 18:11:19 +0000
(19:11 +0100)
src/aubio_priv.h
patch
|
blob
|
history
diff --git
a/src/aubio_priv.h
b/src/aubio_priv.h
index
589c47a
..
c26b1f4
100644
(file)
--- a/
src/aubio_priv.h
+++ b/
src/aubio_priv.h
@@
-367,4
+367,11
@@
uint_t aubio_log(sint_t level, const char_t *fmt, ...);
#endif
#endif /* __STRICT_ANSI__ */
#endif
#endif /* __STRICT_ANSI__ */
+#if defined(DEBUG)
+#include <assert.h>
+#define AUBIO_ASSERT(x) assert(x)
+#else
+#define AUBIO_ASSERT(x)
+#endif /* DEBUG */
+
#endif /* AUBIO_PRIV_H */
#endif /* AUBIO_PRIV_H */