Repository : ssh://git@open-mesh.org/batmand
On branch : master
commit a27537a6ab28773ef18d2e70d2c99c972b76a814 Author: Sven Eckelmann sven@narfation.org Date: Sun Sep 15 17:48:35 2013 +0200
Print error during build when MEMORY_USAGE is requested but the build is done without DEBUG_MALLOC.
Signed-off-by: Sven Eckelmann sven@narfation.org
a27537a6ab28773ef18d2e70d2c99c972b76a814 allocate.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/allocate.c b/allocate.c index c6c3082..fe61847 100644 --- a/allocate.c +++ b/allocate.c @@ -32,6 +32,10 @@
#if defined DEBUG_MALLOC
+#ifndef MEMORY_USAGE +#error DEBUG_MALLOC can only be used together with MEMORY_USAGE +#endif + static pthread_mutex_t chunk_mutex = PTHREAD_MUTEX_INITIALIZER;
struct chunkHeader *chunkList = NULL;