summaryrefslogtreecommitdiff
path: root/apps/plugins/lua
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua')
-rw-r--r--apps/plugins/lua/malloc.c6
-rw-r--r--apps/plugins/lua/rockmalloc.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lua/malloc.c b/apps/plugins/lua/malloc.c
index 6dc00c4..e96497e 100644
--- a/apps/plugins/lua/malloc.c
+++ b/apps/plugins/lua/malloc.c
@@ -2155,7 +2155,7 @@ static void reset_on_error(mstate m);
/* -------------------------- Debugging setup ---------------------------- */
-#if ! DEBUG
+#ifndef DEBUG
#define check_free_chunk(M,P)
#define check_inuse_chunk(M,P)
@@ -2511,7 +2511,7 @@ static int change_mparam(int param_number, int value) {
}
}
-#if DEBUG
+#ifdef DEBUG
/* ------------------------- Debugging Support --------------------------- */
/* Check properties of any chunk, whether free, inuse, mmapped etc */
@@ -3995,7 +3995,7 @@ static void** ialloc(mstate m,
}
}
-#if DEBUG
+#ifdef DEBUG
if (marray != chunks) {
/* final element must have exactly exhausted chunk */
if (element_size != 0) {
diff --git a/apps/plugins/lua/rockmalloc.h b/apps/plugins/lua/rockmalloc.h
index 46a943f..256c583 100644
--- a/apps/plugins/lua/rockmalloc.h
+++ b/apps/plugins/lua/rockmalloc.h
@@ -35,7 +35,7 @@
#define HAVE_MREMAP 0
#define NO_MALLINFO 1
#define ABORT ((void) 0)
-#define DEBUG 0
+/* #define DEBUG */
#define MORECORE rocklua_morecore
void *rocklua_morecore(int size);