aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index 90050a75..0becc766 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.70 2009/09/09 20:44:10 roberto Exp roberto $ 2** $Id: ltests.c,v 2.71 2009/09/14 14:30:39 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*/
@@ -697,8 +697,6 @@ static int doonnewstack (lua_State *L) {
697 size_t l; 697 size_t l;
698 const char *s = luaL_checklstring(L, 1, &l); 698 const char *s = luaL_checklstring(L, 1, &l);
699 int status = luaL_loadbuffer(L1, s, l, s); 699 int status = luaL_loadbuffer(L1, s, l, s);
700 lua_State *ML = lua_mainthread(L1);
701 lua_assert(L1 != L && ML != L1 && lua_mainthread(L) == ML);
702 if (status == LUA_OK) 700 if (status == LUA_OK)
703 status = lua_pcall(L1, 0, 0, 0); 701 status = lua_pcall(L1, 0, 0, 0);
704 lua_pushinteger(L, status); 702 lua_pushinteger(L, status);
@@ -973,6 +971,10 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) {
973 else if EQ("gettable") { 971 else if EQ("gettable") {
974 lua_gettable(L1, getindex); 972 lua_gettable(L1, getindex);
975 } 973 }
974 else if EQ("rawgeti") {
975 int t = getindex;
976 lua_rawgeti(L1, t, getnum);
977 }
976 else if EQ("settable") { 978 else if EQ("settable") {
977 lua_settable(L1, getindex); 979 lua_settable(L1, getindex);
978 } 980 }