MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_pushthread

Function lua_pushthread

3rd/lua-5.4.3/src/lapi.c:618–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616
617
618LUA_API int lua_pushthread (lua_State *L) {
619 lua_lock(L);
620 setthvalue(L, s2v(L->top), L);
621 api_incr_top(L);
622 lua_unlock(L);
623 return (G(L)->mainthread == L);
624}
625
626
627

Callers 4

luaB_corunningFunction · 0.85
hookfFunction · 0.85
db_sethookFunction · 0.85
db_gethookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected