MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / freestack

Function freestack

extlibs/lua/src/lstate.c:230–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228
229
230static void freestack (lua_State *L) {
231 if (L->stack == NULL)
232 return; /* stack not completely built yet */
233 L->ci = &L->base_ci; /* free the entire 'ci' list */
234 luaE_freeCI(L);
235 lua_assert(L->nci == 0);
236 luaM_freearray(L, L->stack, L->stacksize); /* free stack array */
237}
238
239
240/*

Callers 2

close_stateFunction · 0.85
luaE_freethreadFunction · 0.85

Calls 1

luaE_freeCIFunction · 0.85

Tested by

no test coverage detected