diff options
| -rw-r--r-- | lmem.c | 4 | ||||
| -rw-r--r-- | lmem.h | 4 | ||||
| -rw-r--r-- | lobject.h | 6 | ||||
| -rw-r--r-- | lstate.c | 6 | ||||
| -rw-r--r-- | ltests.c | 6 |
5 files changed, 13 insertions, 13 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lmem.c,v 1.37 2000/10/11 16:47:50 roberto Exp roberto $ | 2 | ** $Id: lmem.c,v 1.38 2000/10/26 12:47:05 roberto Exp roberto $ |
| 3 | ** Interface to Memory Manager | 3 | ** Interface to Memory Manager |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | #ifdef DEBUG | 20 | #ifdef LUA_DEBUG |
| 21 | /* | 21 | /* |
| 22 | ** {====================================================================== | 22 | ** {====================================================================== |
| 23 | ** Controlled version for realloc. | 23 | ** Controlled version for realloc. |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lmem.h,v 1.14 2000/05/24 13:54:49 roberto Exp roberto $ | 2 | ** $Id: lmem.h,v 1.15 2000/08/07 18:39:16 roberto Exp roberto $ |
| 3 | ** Interface to Memory Manager | 3 | ** Interface to Memory Manager |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -30,7 +30,7 @@ void *luaM_growaux (lua_State *L, void *block, size_t nelems, | |||
| 30 | ((v)=(t *)luaM_realloc(L, v,(n)*(lint32)sizeof(t))) | 30 | ((v)=(t *)luaM_realloc(L, v,(n)*(lint32)sizeof(t))) |
| 31 | 31 | ||
| 32 | 32 | ||
| 33 | #ifdef DEBUG | 33 | #ifdef LUA_DEBUG |
| 34 | extern unsigned long memdebug_numblocks; | 34 | extern unsigned long memdebug_numblocks; |
| 35 | extern unsigned long memdebug_total; | 35 | extern unsigned long memdebug_total; |
| 36 | extern unsigned long memdebug_maxmem; | 36 | extern unsigned long memdebug_maxmem; |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.h,v 1.79 2000/10/05 12:14:08 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.80 2000/10/26 12:47:05 roberto Exp roberto $ |
| 3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -12,7 +12,7 @@ | |||
| 12 | #include "lua.h" | 12 | #include "lua.h" |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | #ifdef DEBUG | 15 | #ifdef LUA_DEBUG |
| 16 | #undef NDEBUG | 16 | #undef NDEBUG |
| 17 | #include <assert.h> | 17 | #include <assert.h> |
| 18 | #define LUA_INTERNALERROR(s) assert(((void)s,0)) | 18 | #define LUA_INTERNALERROR(s) assert(((void)s,0)) |
| @@ -23,7 +23,7 @@ | |||
| 23 | #endif | 23 | #endif |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | #ifdef DEBUG | 26 | #ifdef LUA_DEBUG |
| 27 | /* to avoid warnings, and make sure value is really unused */ | 27 | /* to avoid warnings, and make sure value is really unused */ |
| 28 | #define UNUSED(x) (x=0, (void)(x)) | 28 | #define UNUSED(x) (x=0, (void)(x)) |
| 29 | #else | 29 | #else |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.c,v 1.46 2000/10/24 19:12:06 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.47 2000/10/26 12:47:05 roberto Exp roberto $ |
| 3 | ** Global State | 3 | ** Global State |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -19,7 +19,7 @@ | |||
| 19 | #include "ltm.h" | 19 | #include "ltm.h" |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | #ifdef DEBUG | 22 | #ifdef LUA_DEBUG |
| 23 | static lua_State *lua_state = NULL; | 23 | static lua_State *lua_state = NULL; |
| 24 | void luaB_opentests (lua_State *L); | 24 | void luaB_opentests (lua_State *L); |
| 25 | #endif | 25 | #endif |
| @@ -55,7 +55,7 @@ static void f_luaopen (lua_State *L, void *ud) { | |||
| 55 | lua_newtable(L); | 55 | lua_newtable(L); |
| 56 | lua_ref(L, 1); /* create registry */ | 56 | lua_ref(L, 1); /* create registry */ |
| 57 | lua_register(L, LUA_ERRORMESSAGE, errormessage); | 57 | lua_register(L, LUA_ERRORMESSAGE, errormessage); |
| 58 | #ifdef DEBUG | 58 | #ifdef LUA_DEBUG |
| 59 | luaB_opentests(L); | 59 | luaB_opentests(L); |
| 60 | if (lua_state == NULL) lua_state = L; /* keep first state to be opened */ | 60 | if (lua_state == NULL) lua_state = L; /* keep first state to be opened */ |
| 61 | #endif | 61 | #endif |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.51 2000/10/20 16:39:03 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.52 2000/10/26 12:47:05 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -32,9 +32,9 @@ void luaB_opentests (lua_State *L); | |||
| 32 | 32 | ||
| 33 | 33 | ||
| 34 | /* | 34 | /* |
| 35 | ** The whole module only makes sense with DEBUG on | 35 | ** The whole module only makes sense with LUA_DEBUG on |
| 36 | */ | 36 | */ |
| 37 | #ifdef DEBUG | 37 | #ifdef LUA_DEBUG |
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | 40 | ||
