MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaC_runtilstate

Function luaC_runtilstate

depends/lua/src/lgc.c:1104–1108  ·  view source on GitHub ↗

** advances the garbage collector until it reaches a state allowed ** by 'statemask' */

Source from the content-addressed store, hash-verified

1102** by 'statemask'
1103*/
1104void luaC_runtilstate (lua_State *L, int statesmask) {
1105 global_State *g = G(L);
1106 while (!testbit(statesmask, g->gcstate))
1107 singlestep(L);
1108}
1109
1110
1111/*

Callers 1

luaC_fullgcFunction · 0.85

Calls 1

singlestepFunction · 0.85

Tested by

no test coverage detected