From 67cae2854cd2f90ff0cd91d641ab0b76417a1302 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 17 Sep 2009 15:04:21 -0300 Subject: 'lua_mainthread' replaced by new preregistered value LUA_RIDX_MAINTHREAD --- ltests.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 90050a75..0becc766 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.70 2009/09/09 20:44:10 roberto Exp roberto $ +** $Id: ltests.c,v 2.71 2009/09/14 14:30:39 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -697,8 +697,6 @@ static int doonnewstack (lua_State *L) { size_t l; const char *s = luaL_checklstring(L, 1, &l); int status = luaL_loadbuffer(L1, s, l, s); - lua_State *ML = lua_mainthread(L1); - lua_assert(L1 != L && ML != L1 && lua_mainthread(L) == ML); if (status == LUA_OK) status = lua_pcall(L1, 0, 0, 0); lua_pushinteger(L, status); @@ -973,6 +971,10 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { else if EQ("gettable") { lua_gettable(L1, getindex); } + else if EQ("rawgeti") { + int t = getindex; + lua_rawgeti(L1, t, getnum); + } else if EQ("settable") { lua_settable(L1, getindex); } -- cgit v1.2.3-55-g6feb