MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_closeslot

Function lua_closeslot

third-party/lua-5.5.0/src/lapi.c:206–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204
205
206LUA_API void lua_closeslot (lua_State *L, int idx) {
207 StkId level;
208 lua_lock(L);
209 level = index2stack(L, idx);
210 api_check(L, (L->ci->callstatus & CIST_TBC) && (L->tbclist.p == level),
211 "no variable to close at given level");
212 level = luaF_close(L, level, CLOSEKTOP, 0);
213 setnilvalue(s2v(level));
214 lua_unlock(L);
215}
216
217
218/*

Callers 1

luaL_pushresultFunction · 0.70

Calls 2

index2stackFunction · 0.70
luaF_closeFunction · 0.70

Tested by

no test coverage detected