From 37e9c2e74486ed443151430a9b73a3844d3554ef Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 30 Oct 2000 14:29:59 -0200 Subject: [PATCH] macro DEBUG renamed to LUA_DEBUG --- lmem.c | 4 ++-- lmem.h | 4 ++-- lobject.h | 6 +++--- lstate.c | 6 +++--- ltests.c | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lmem.c b/lmem.c index 7bcc1a35..612d5899 100644 --- a/lmem.c +++ b/lmem.c @@ -1,5 +1,5 @@ /* -** $Id: lmem.c,v 1.37 2000/10/11 16:47:50 roberto Exp roberto $ +** $Id: lmem.c,v 1.38 2000/10/26 12:47:05 roberto Exp roberto $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ @@ -17,7 +17,7 @@ -#ifdef DEBUG +#ifdef LUA_DEBUG /* ** {====================================================================== ** Controlled version for realloc. diff --git a/lmem.h b/lmem.h index f1630238..6112237b 100644 --- a/lmem.h +++ b/lmem.h @@ -1,5 +1,5 @@ /* -** $Id: lmem.h,v 1.14 2000/05/24 13:54:49 roberto Exp roberto $ +** $Id: lmem.h,v 1.15 2000/08/07 18:39:16 roberto Exp roberto $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ @@ -30,7 +30,7 @@ void *luaM_growaux (lua_State *L, void *block, size_t nelems, ((v)=(t *)luaM_realloc(L, v,(n)*(lint32)sizeof(t))) -#ifdef DEBUG +#ifdef LUA_DEBUG extern unsigned long memdebug_numblocks; extern unsigned long memdebug_total; extern unsigned long memdebug_maxmem; diff --git a/lobject.h b/lobject.h index a3638622..402eec40 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.79 2000/10/05 12:14:08 roberto Exp roberto $ +** $Id: lobject.h,v 1.80 2000/10/26 12:47:05 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -12,7 +12,7 @@ #include "lua.h" -#ifdef DEBUG +#ifdef LUA_DEBUG #undef NDEBUG #include #define LUA_INTERNALERROR(s) assert(((void)s,0)) @@ -23,7 +23,7 @@ #endif -#ifdef DEBUG +#ifdef LUA_DEBUG /* to avoid warnings, and make sure value is really unused */ #define UNUSED(x) (x=0, (void)(x)) #else diff --git a/lstate.c b/lstate.c index 4593e5eb..b62cdd98 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 1.46 2000/10/24 19:12:06 roberto Exp roberto $ +** $Id: lstate.c,v 1.47 2000/10/26 12:47:05 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -19,7 +19,7 @@ #include "ltm.h" -#ifdef DEBUG +#ifdef LUA_DEBUG static lua_State *lua_state = NULL; void luaB_opentests (lua_State *L); #endif @@ -55,7 +55,7 @@ static void f_luaopen (lua_State *L, void *ud) { lua_newtable(L); lua_ref(L, 1); /* create registry */ lua_register(L, LUA_ERRORMESSAGE, errormessage); -#ifdef DEBUG +#ifdef LUA_DEBUG luaB_opentests(L); if (lua_state == NULL) lua_state = L; /* keep first state to be opened */ #endif diff --git a/ltests.c b/ltests.c index 111c9f64..b45a1de2 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.51 2000/10/20 16:39:03 roberto Exp roberto $ +** $Id: ltests.c,v 1.52 2000/10/26 12:47:05 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -32,9 +32,9 @@ void luaB_opentests (lua_State *L); /* -** The whole module only makes sense with DEBUG on +** The whole module only makes sense with LUA_DEBUG on */ -#ifdef DEBUG +#ifdef LUA_DEBUG