MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / lua_pushthread

Function lua_pushthread

xrepo/packages/l/lua/port/lua/src/lapi.c:628–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626
627
628LUA_API int lua_pushthread (lua_State *L) {
629 lua_lock(L);
630 setthvalue(L, s2v(L->top), L);
631 api_incr_top(L);
632 lua_unlock(L);
633 return (G(L)->mainthread == L);
634}
635
636
637

Callers 4

luaB_corunningFunction · 0.70
hookfFunction · 0.70
db_sethookFunction · 0.70
db_gethookFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected