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

Function lua_pushthread

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

Source from the content-addressed store, hash-verified

653
654
655LUA_API int lua_pushthread (lua_State *L) {
656 lua_lock(L);
657 setthvalue(L, s2v(L->top.p), L);
658 api_incr_top(L);
659 lua_unlock(L);
660 return (mainthread(G(L)) == L);
661}
662
663
664

Callers 6

luaB_corunningFunction · 0.70
hookfFunction · 0.70
db_sethookFunction · 0.70
db_gethookFunction · 0.70
AttachMethod · 0.50
AddDebuggerMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected