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

Function freestack

depends/lua/src/lstate.c:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169
170
171static void freestack (lua_State *L) {
172 if (L->stack == NULL)
173 return; /* stack not completely built yet */
174 L->ci = &L->base_ci; /* free the entire 'ci' list */
175 luaE_freeCI(L);
176 lua_assert(L->nci == 0);
177 luaM_freearray(L, L->stack, L->stacksize); /* free stack array */
178}
179
180
181/*

Callers 2

close_stateFunction · 0.85
luaE_freethreadFunction · 0.85

Calls 1

luaE_freeCIFunction · 0.85

Tested by

no test coverage detected