summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-30 14:29:59 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-30 14:29:59 -0200
commit37e9c2e74486ed443151430a9b73a3844d3554ef (patch)
tree2d225332e7bf2e9a83c233416b8aa9043dbe9e8b /lstate.c
parente42a219eebd2e4c6f11f8b175d3d0e0f6678b48c (diff)
downloadlua-37e9c2e74486ed443151430a9b73a3844d3554ef.tar.gz
lua-37e9c2e74486ed443151430a9b73a3844d3554ef.tar.bz2
lua-37e9c2e74486ed443151430a9b73a3844d3554ef.zip
macro DEBUG renamed to LUA_DEBUG
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index 4593e5eb..b62cdd98 100644
--- a/lstate.c
+++ b/lstate.c
@@ -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
23static lua_State *lua_state = NULL; 23static lua_State *lua_state = NULL;
24void luaB_opentests (lua_State *L); 24void 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