Example #1
0
/*
** performs a basic GC step only if collector is running
*/
void luaC_step (lua_State *L) {
	global_State *g = G(L);
	if (g->gcrunning) luaC_forcestep(L);
	else luaE_setdebt(g, -GCSTEPSIZE);  /* avoid being called too often */
}
Example #2
0
/*
** performs a basic GC step only if collector is running
*/
void luaC_step (lua_State *L) {
  if (G(L)->gcrunning) luaC_forcestep(L);
}