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

Function luaE_freeCI

depends/lua/src/lstate.c:122–131  ·  view source on GitHub ↗

** free all CallInfo structures not in use by a thread */

Source from the content-addressed store, hash-verified

120** free all CallInfo structures not in use by a thread
121*/
122void luaE_freeCI (lua_State *L) {
123 CallInfo *ci = L->ci;
124 CallInfo *next = ci->next;
125 ci->next = NULL;
126 while ((ci = next) != NULL) {
127 next = ci->next;
128 luaM_free(L, ci);
129 L->nci--;
130 }
131}
132
133
134/*

Callers 2

freestackFunction · 0.85
luaD_shrinkstackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected