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

Function stackinuse

third-party/lua-5.2.4/src/ldo.c:194–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193
194static int stackinuse (lua_State *L) {
195 CallInfo *ci;
196 StkId lim = L->top;
197 for (ci = L->ci; ci != NULL; ci = ci->previous) {
198 lua_assert(ci->top <= L->stack_last);
199 if (lim < ci->top) lim = ci->top;
200 }
201 return cast_int(lim - L->stack) + 1; /* part of stack in use */
202}
203
204
205void luaD_shrinkstack (lua_State *L) {

Callers 1

luaD_shrinkstackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected