diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.38 2006/07/11 15:53:29 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.39 2006/09/11 14:07:24 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 | */ |
@@ -690,7 +690,7 @@ static int doonnewstack (lua_State *L) { | |||
690 | size_t l; | 690 | size_t l; |
691 | const char *s = luaL_checklstring(L, 1, &l); | 691 | const char *s = luaL_checklstring(L, 1, &l); |
692 | int status = luaL_loadbuffer(L1, s, l, s); | 692 | int status = luaL_loadbuffer(L1, s, l, s); |
693 | if (status == 0) | 693 | if (status == LUA_OK) |
694 | status = lua_pcall(L1, 0, 0, 0); | 694 | status = lua_pcall(L1, 0, 0, 0); |
695 | lua_pushinteger(L, status); | 695 | lua_pushinteger(L, status); |
696 | return 1; | 696 | return 1; |
@@ -759,9 +759,9 @@ static int doremote (lua_State *L) { | |||
759 | int status; | 759 | int status; |
760 | lua_settop(L1, 0); | 760 | lua_settop(L1, 0); |
761 | status = luaL_loadbuffer(L1, code, lcode, code); | 761 | status = luaL_loadbuffer(L1, code, lcode, code); |
762 | if (status == 0) | 762 | if (status == LUA_OK) |
763 | status = lua_pcall(L1, 0, LUA_MULTRET, 0); | 763 | status = lua_pcall(L1, 0, LUA_MULTRET, 0); |
764 | if (status != 0) { | 764 | if (status != LUA_OK) { |
765 | lua_pushnil(L); | 765 | lua_pushnil(L); |
766 | lua_pushinteger(L, status); | 766 | lua_pushinteger(L, status); |
767 | lua_pushstring(L, lua_tostring(L1, -1)); | 767 | lua_pushstring(L, lua_tostring(L1, -1)); |