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

Function lua_toclose

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

Source from the content-addressed store, hash-verified

1281
1282
1283LUA_API void lua_toclose (lua_State *L, int idx) {
1284 StkId o;
1285 lua_lock(L);
1286 o = index2stack(L, idx);
1287 api_check(L, L->tbclist.p < o, "given index below or equal a marked one");
1288 luaF_newtbcupval(L, o); /* create new to-be-closed upvalue */
1289 L->ci->callstatus |= CIST_TBC; /* mark that function has TBC slots */
1290 lua_unlock(L);
1291}
1292
1293
1294LUA_API void lua_concat (lua_State *L, int n) {

Callers 1

prepbuffsizeFunction · 0.70

Calls 2

index2stackFunction · 0.70
luaF_newtbcupvalFunction · 0.70

Tested by

no test coverage detected