MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaE_freeCI

Function luaE_freeCI

libraries/AP_Scripting/lua/src/lstate.c:130–139  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

128** free all CallInfo structures not in use by a thread
129*/
130void luaE_freeCI (lua_State *L) {
131 CallInfo *ci = L->ci;
132 CallInfo *next = ci->next;
133 ci->next = NULL;
134 while ((ci = next) != NULL) {
135 next = ci->next;
136 luaM_free(L, ci);
137 L->nci--;
138 }
139}
140
141
142/*

Callers 2

freestackFunction · 0.85
luaD_shrinkstackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected