MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / freestack

Function freestack

third-party/lua-5.5.0/src/lstate.c:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

close_stateFunction · 0.70
luaE_freethreadFunction · 0.70

Calls 1

freeCIFunction · 0.70

Tested by

no test coverage detected