예제 #1
0
파일: lgc.c 프로젝트: crazii/mameplus
/*
** 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 */
}
예제 #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);
}