** performs a basic GC step only if collector is running */
| 1174 | ** performs a basic GC step only if collector is running |
| 1175 | */ |
| 1176 | void luaC_step (lua_State *L) { |
| 1177 | global_State *g = G(L); |
| 1178 | if (g->gcrunning) luaC_forcestep(L); |
| 1179 | else luaE_setdebt(g, -GCSTEPSIZE); /* avoid being called too often */ |
| 1180 | } |
| 1181 | |
| 1182 | |
| 1183 |
no test coverage detected