Lines Matching refs:L1
35 static void checkstack (lua_State *L, lua_State *L1, int n) { in checkstack() argument
36 if (L != L1 && !lua_checkstack(L1, n)) in checkstack()
130 static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) { in treatstackoption() argument
131 if (L == L1) in treatstackoption()
134 lua_xmove(L1, L, 1); /* move object to the "main" stack */ in treatstackoption()
148 lua_State *L1 = getthread(L, &arg); in db_getinfo() local
150 checkstack(L, L1, 3); in db_getinfo()
154 lua_xmove(L, L1, 1); in db_getinfo()
157 if (!lua_getstack(L1, (int)luaL_checkinteger(L, arg + 1), &ar)) { in db_getinfo()
162 if (!lua_getinfo(L1, options, &ar)) in db_getinfo()
186 treatstackoption(L, L1, "activelines"); in db_getinfo()
188 treatstackoption(L, L1, "func"); in db_getinfo()
195 lua_State *L1 = getthread(L, &arg); in db_getlocal() local
206 if (!lua_getstack(L1, level, &ar)) /* out of range? */ in db_getlocal()
208 checkstack(L, L1, 1); in db_getlocal()
209 name = lua_getlocal(L1, &ar, nvar); in db_getlocal()
211 lua_xmove(L1, L, 1); /* move local value */ in db_getlocal()
227 lua_State *L1 = getthread(L, &arg); in db_setlocal() local
231 if (!lua_getstack(L1, level, &ar)) /* out of range? */ in db_setlocal()
235 checkstack(L, L1, 1); in db_setlocal()
236 lua_xmove(L, L1, 1); in db_setlocal()
237 name = lua_setlocal(L1, &ar, nvar); in db_setlocal()
239 lua_pop(L1, 1); /* pop value (if not popped by 'lua_setlocal') */ in db_setlocal()
350 lua_State *L1 = getthread(L, &arg); in db_sethook() local
370 checkstack(L, L1, 1); in db_sethook()
371 lua_pushthread(L1); lua_xmove(L1, L, 1); /* key (thread) */ in db_sethook()
374 lua_sethook(L1, func, mask, count); in db_sethook()
381 lua_State *L1 = getthread(L, &arg); in db_gethook() local
383 int mask = lua_gethookmask(L1); in db_gethook()
384 lua_Hook hook = lua_gethook(L1); in db_gethook()
391 checkstack(L, L1, 1); in db_gethook()
392 lua_pushthread(L1); lua_xmove(L1, L, 1); in db_gethook()
397 lua_pushinteger(L, lua_gethookcount(L1)); /* 3rd result = count */ in db_gethook()
419 lua_State *L1 = getthread(L, &arg); in db_traceback() local
424 int level = (int)luaL_optinteger(L, arg + 2, (L == L1) ? 1 : 0); in db_traceback()
425 luaL_traceback(L, L1, msg, level); in db_traceback()