MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / freestack

Function freestack

3rd/lua-5.4.3/src/lstate.c:203–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201
202
203static void freestack (lua_State *L) {
204 if (L->stack == NULL)
205 return; /* stack not completely built yet */
206 L->ci = &L->base_ci; /* free the entire 'ci' list */
207 luaE_freeCI(L);
208 lua_assert(L->nci == 0);
209 luaM_freearray(L, L->stack, stacksize(L) + EXTRA_STACK); /* free stack */
210}
211
212
213/*

Callers 2

close_stateFunction · 0.85
luaE_freethreadFunction · 0.85

Calls 1

luaE_freeCIFunction · 0.85

Tested by

no test coverage detected