MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / stackinuse

Function stackinuse

third-party/lua-5.3.5/src/ldo.c:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208
209
210static int stackinuse (lua_State *L) {
211 CallInfo *ci;
212 StkId lim = L->top;
213 for (ci = L->ci; ci != NULL; ci = ci->previous) {
214 if (lim < ci->top) lim = ci->top;
215 }
216 lua_assert(lim <= L->stack_last);
217 return cast_int(lim - L->stack) + 1; /* part of stack in use */
218}
219
220
221void luaD_shrinkstack (lua_State *L) {

Callers 1

luaD_shrinkstackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected