Lines Matching refs:L1
88 static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) { in treatstackoption() argument
89 if (L == L1) { in treatstackoption()
94 lua_xmove(L1, L, 1); in treatstackoption()
102 lua_State *L1 = getthread(L, &arg); in db_getinfo() local
105 if (!lua_getstack(L1, (int)lua_tointeger(L, arg+1), &ar)) { in db_getinfo()
114 lua_xmove(L, L1, 1); in db_getinfo()
118 if (!lua_getinfo(L1, options, &ar)) in db_getinfo()
137 treatstackoption(L, L1, "activelines"); in db_getinfo()
139 treatstackoption(L, L1, "func"); in db_getinfo()
146 lua_State *L1 = getthread(L, &arg); in db_getlocal() local
149 if (!lua_getstack(L1, luaL_checkint(L, arg+1), &ar)) /* out of range? */ in db_getlocal()
151 name = lua_getlocal(L1, &ar, luaL_checkint(L, arg+2)); in db_getlocal()
153 lua_xmove(L1, L, 1); in db_getlocal()
167 lua_State *L1 = getthread(L, &arg); in db_setlocal() local
169 if (!lua_getstack(L1, luaL_checkint(L, arg+1), &ar)) /* out of range? */ in db_setlocal()
173 lua_xmove(L, L1, 1); in db_setlocal()
174 lua_pushstring(L, lua_setlocal(L1, &ar, luaL_checkint(L, arg+2))); in db_setlocal()
261 lua_State *L1 = getthread(L, &arg); in db_sethook() local
273 lua_pushlightuserdata(L, L1); in db_sethook()
277 lua_sethook(L1, func, mask, count); /* set hooks */ in db_sethook()
284 lua_State *L1 = getthread(L, &arg); in db_gethook() local
286 int mask = lua_gethookmask(L1); in db_gethook()
287 lua_Hook hook = lua_gethook(L1); in db_gethook()
292 lua_pushlightuserdata(L, L1); in db_gethook()
297 lua_pushinteger(L, lua_gethookcount(L1)); in db_gethook()
326 lua_State *L1 = getthread(L, &arg); in db_errorfb() local
333 level = (L == L1) ? 1 : 0; /* level 0 may be this own function */ in db_errorfb()
339 while (lua_getstack(L1, level++, &ar)) { in db_errorfb()
342 if (!lua_getstack(L1, level+LEVELS2, &ar)) in db_errorfb()
346 while (lua_getstack(L1, level+LEVELS2, &ar)) /* find last levels */ in db_errorfb()
353 lua_getinfo(L1, "Snl", &ar); in db_errorfb()