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

Function lua_pushthread

engine/lua/src/lua/lapi.c:519–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517
518
519LUA_API int lua_pushthread (lua_State *L) {
520 lua_lock(L);
521 setthvalue(L, L->top, L);
522 api_incr_top(L);
523 lua_unlock(L);
524 return (G(L)->mainthread == L);
525}
526
527
528

Callers 3

luaB_setfenvFunction · 0.85
luaB_corunningFunction · 0.85

Calls 1

GFunction · 0.50

Tested by

no test coverage detected