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

Function luaE_freeCI

extlibs/lua/src/lstate.c:174–185  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

172** free all CallInfo structures not in use by a thread
173*/
174void luaE_freeCI (lua_State *L) {
175 CallInfo *ci = L->ci;
176 CallInfo *next = ci->next;
177 ci->next = NULL;
178 L->nCcalls += L->nci; /* add removed elements back to 'nCcalls' */
179 while ((ci = next) != NULL) {
180 next = ci->next;
181 luaM_free(L, ci);
182 L->nci--;
183 }
184 L->nCcalls -= L->nci; /* adjust result */
185}
186
187
188/*

Callers 4

lua_setcstacklimitFunction · 0.85
luaE_enterCcallFunction · 0.85
freestackFunction · 0.85
luaD_callnoyieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected