MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / lua_pushthread

Function lua_pushthread

src/lapi.cpp:710–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708
709
710LUA_API int lua_pushthread (lua_State *L) {
711 lua_lock(L);
712 setthvalue(L, s2v(L->top.p), L);
713 api_incr_top(L);
714 lua_unlock(L);
715 return (mainthread(G(L)) == L);
716}
717
718
719

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