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

Function stackinuse

libraries/AP_Scripting/lua/src/ldo.c:219–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218
219static int stackinuse (lua_State *L) {
220 CallInfo *ci;
221 StkId lim = L->top;
222 for (ci = L->ci; ci != NULL; ci = ci->previous) {
223 if (lim < ci->top) lim = ci->top;
224 }
225 lua_assert(lim <= L->stack_last);
226 return cast_int(lim - L->stack) + 1; /* part of stack in use */
227}
228
229
230void luaD_shrinkstack (lua_State *L) {

Callers 1

luaD_shrinkstackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected