shithub: aubio

Download patch

ref: 6f601bdd9d1fbc287ac19e680b8041ebc38ed85d
parent: e4c6c763ed5559b3ea4a37e155db510d3b5af69a
author: Paul Brossier <piem@piem.org>
date: Sun Dec 16 14:11:19 EST 2018

[lib] add AUBIO_ASSERT for debug mode

--- a/src/aubio_priv.h
+++ b/src/aubio_priv.h
@@ -367,4 +367,11 @@
 #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 */