MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / lua_closeslot

Function lua_closeslot

lib/lua/src/lapi.c:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaL_pushresultFunction · 0.85

Calls 2

index2stackFunction · 0.85
luaF_closeFunction · 0.85

Tested by

no test coverage detected