MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_pushthread

Function lua_pushthread

depends/lua/src/lapi.c:573–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571
572
573LUA_API int lua_pushthread (lua_State *L) {
574 lua_lock(L);
575 setthvalue(L, L->top, L);
576 api_incr_top(L);
577 lua_unlock(L);
578 return (G(L)->mainthread == L);
579}
580
581
582

Callers 5

convert_to_exceptionFunction · 0.85
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