summaryrefslogtreecommitdiffstats
path: root/jv_alloc.h
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-05 23:12:10 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-05 23:12:10 +0100
commit1741d8c1618c1826628c9deb70f3876ed22501f3 (patch)
tree10f92e4de8bbdfa4a164513c542c32fff1939982 /jv_alloc.h
parentc1748fa633b327ab4c0146c70680b1583e74e54f (diff)
Remove JQ_DEBUG #define and jq_test binary, simplifying build.
The debugging features previously available via JQ_DEBUG are now command-line options.
Diffstat (limited to 'jv_alloc.h')
-rw-r--r--jv_alloc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/jv_alloc.h b/jv_alloc.h
index b4e72c0d..9cf1d34e 100644
--- a/jv_alloc.h
+++ b/jv_alloc.h
@@ -3,12 +3,12 @@
#include <stddef.h>
-#if JQ_DEBUG
+#ifndef NDEBUG
extern volatile char jv_mem_uninitialised;
#endif
static void jv_mem_invalidate(void* mem, size_t n) {
-#if JQ_DEBUG
+#ifndef NDEBUG
char* m = mem;
while (n--) *m++ ^= jv_mem_uninitialised ^ jv_mem_uninitialised;
#endif