MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaC_step

Function luaC_step

3rd/lua-5.4.3/src/lgc.c:1678–1687  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1676** performs a basic GC step if collector is running
1677*/
1678void luaC_step (lua_State *L) {
1679 global_State *g = G(L);
1680 lua_assert(!g->gcemergency);
1681 if (g->gcrunning) { /* running? */
1682 if(isdecGCmodegen(g))
1683 genstep(L, g);
1684 else
1685 incstep(L, g);
1686 }
1687}
1688
1689
1690/*

Callers 1

lua_gcFunction · 0.85

Calls 2

genstepFunction · 0.85
incstepFunction · 0.85

Tested by

no test coverage detected