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

Function lua_closethread

third-party/lua-5.5.0/src/lstate.c:324–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322
323
324LUA_API int lua_closethread (lua_State *L, lua_State *from) {
325 TStatus status;
326 lua_lock(L);
327 L->nCcalls = (from) ? getCcalls(from) : 0;
328 status = luaE_resetthread(L, L->status);
329 if (L == from) /* closing itself? */
330 luaD_throwbaselevel(L, status);
331 lua_unlock(L);
332 return APIstatus(status);
333}
334
335
336LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud, unsigned seed) {

Callers 2

luaB_auxwrapFunction · 0.70
luaB_closeFunction · 0.70

Calls 2

luaD_throwbaselevelFunction · 0.85
luaE_resetthreadFunction · 0.70

Tested by

no test coverage detected