MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaC_step

Function luaC_step

extlibs/lua/src/lgc.c:1566–1575  ·  view source on GitHub ↗

** performs a basic GC step if collector is running */

Source from the content-addressed store, hash-verified

1564** performs a basic GC step if collector is running
1565*/
1566void luaC_step (lua_State *L) {
1567 global_State *g = G(L);
1568 lua_assert(!g->gcemergency);
1569 if (g->gcrunning) { /* running? */
1570 if(isdecGCmodegen(g))
1571 genstep(L, g);
1572 else
1573 incstep(L, g);
1574 }
1575}
1576
1577
1578/*

Callers 1

lua_gcFunction · 0.85

Calls 2

genstepFunction · 0.85
incstepFunction · 0.85

Tested by

no test coverage detected