MCPcopy Create free account
hub / github.com/danomatika/ofxLua / luaC_step

Function luaC_step

libs/lua/lgc.c:1688–1698  ·  view source on GitHub ↗

** Performs a basic GC step if collector is running. (If collector is ** not running, set a reasonable debt to avoid it being called at ** every single check.) */

Source from the content-addressed store, hash-verified

1686** every single check.)
1687*/
1688void luaC_step (lua_State *L) {
1689 global_State *g = G(L);
1690 if (!gcrunning(g)) /* not running? */
1691 luaE_setdebt(g, -2000);
1692 else {
1693 if(isdecGCmodegen(g))
1694 genstep(L, g);
1695 else
1696 incstep(L, g);
1697 }
1698}
1699
1700
1701/*

Callers 1

lua_gcFunction · 0.85

Calls 3

luaE_setdebtFunction · 0.85
genstepFunction · 0.85
incstepFunction · 0.85

Tested by

no test coverage detected