diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |