diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-11 16:46:45 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-11 16:46:45 +0000 |
commit | 9122e525cc40a18bffce3d6c347030a65cec4fbc (patch) | |
tree | b2607d4d6b0a1c6c78f129e50a7949cecd76e675 /apps/plugins/lua/malloc.c | |
parent | c7c04eb5a921c7ed957616a9cb50ca60d9ce9c24 (diff) | |
download | rockbox-9122e525cc40a18bffce3d6c347030a65cec4fbc.tar.gz rockbox-9122e525cc40a18bffce3d6c347030a65cec4fbc.zip |
lua: make DEBUG undefined by default, as doc states
use #ifdef / #ifndef and not #if / #if !
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27387 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lua/malloc.c')
-rw-r--r-- | apps/plugins/lua/malloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/lua/malloc.c b/apps/plugins/lua/malloc.c index 6dc00c4f9a..e96497e4bb 100644 --- a/apps/plugins/lua/malloc.c +++ b/apps/plugins/lua/malloc.c | |||
@@ -2155,7 +2155,7 @@ static void reset_on_error(mstate m); | |||
2155 | 2155 | ||
2156 | /* -------------------------- Debugging setup ---------------------------- */ | 2156 | /* -------------------------- Debugging setup ---------------------------- */ |
2157 | 2157 | ||
2158 | #if ! DEBUG | 2158 | #ifndef DEBUG |
2159 | 2159 | ||
2160 | #define check_free_chunk(M,P) | 2160 | #define check_free_chunk(M,P) |
2161 | #define check_inuse_chunk(M,P) | 2161 | #define check_inuse_chunk(M,P) |
@@ -2511,7 +2511,7 @@ static int change_mparam(int param_number, int value) { | |||
2511 | } | 2511 | } |
2512 | } | 2512 | } |
2513 | 2513 | ||
2514 | #if DEBUG | 2514 | #ifdef DEBUG |
2515 | /* ------------------------- Debugging Support --------------------------- */ | 2515 | /* ------------------------- Debugging Support --------------------------- */ |
2516 | 2516 | ||
2517 | /* Check properties of any chunk, whether free, inuse, mmapped etc */ | 2517 | /* Check properties of any chunk, whether free, inuse, mmapped etc */ |
@@ -3995,7 +3995,7 @@ static void** ialloc(mstate m, | |||
3995 | } | 3995 | } |
3996 | } | 3996 | } |
3997 | 3997 | ||
3998 | #if DEBUG | 3998 | #ifdef DEBUG |
3999 | if (marray != chunks) { | 3999 | if (marray != chunks) { |
4000 | /* final element must have exactly exhausted chunk */ | 4000 | /* final element must have exactly exhausted chunk */ |
4001 | if (element_size != 0) { | 4001 | if (element_size != 0) { |