forked from len0rd/rockbox
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
This commit is contained in:
parent
c7c04eb5a9
commit
9122e525cc
2 changed files with 4 additions and 4 deletions
|
@ -2155,7 +2155,7 @@ static void reset_on_error(mstate m);
|
||||||
|
|
||||||
/* -------------------------- Debugging setup ---------------------------- */
|
/* -------------------------- Debugging setup ---------------------------- */
|
||||||
|
|
||||||
#if ! DEBUG
|
#ifndef DEBUG
|
||||||
|
|
||||||
#define check_free_chunk(M,P)
|
#define check_free_chunk(M,P)
|
||||||
#define check_inuse_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 --------------------------- */
|
/* ------------------------- Debugging Support --------------------------- */
|
||||||
|
|
||||||
/* Check properties of any chunk, whether free, inuse, mmapped etc */
|
/* 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) {
|
if (marray != chunks) {
|
||||||
/* final element must have exactly exhausted chunk */
|
/* final element must have exactly exhausted chunk */
|
||||||
if (element_size != 0) {
|
if (element_size != 0) {
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#define HAVE_MREMAP 0
|
#define HAVE_MREMAP 0
|
||||||
#define NO_MALLINFO 1
|
#define NO_MALLINFO 1
|
||||||
#define ABORT ((void) 0)
|
#define ABORT ((void) 0)
|
||||||
#define DEBUG 0
|
/* #define DEBUG */
|
||||||
#define MORECORE rocklua_morecore
|
#define MORECORE rocklua_morecore
|
||||||
|
|
||||||
void *rocklua_morecore(int size);
|
void *rocklua_morecore(int size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue