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

Function stackinuse

extlibs/lua/src/ldo.c:235–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233
234
235static int stackinuse (lua_State *L) {
236 CallInfo *ci;
237 StkId lim = L->top;
238 for (ci = L->ci; ci != NULL; ci = ci->previous) {
239 if (lim < ci->top) lim = ci->top;
240 }
241 lua_assert(lim <= L->stack_last);
242 return cast_int(lim - L->stack) + 1; /* part of stack in use */
243}
244
245
246void luaD_shrinkstack (lua_State *L) {

Callers 1

luaD_shrinkstackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected