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

Function luaD_checkminstack

third-party/lua-5.5.0/src/ldo.c:228–231  ·  view source on GitHub ↗

** Check whether stack has enough space to run a simple function (such ** as a finalizer): At least BASIC_STACK_SIZE in the Lua stack and ** 2 slots in the C stack. */

Source from the content-addressed store, hash-verified

226** 2 slots in the C stack.
227*/
228int luaD_checkminstack (lua_State *L) {
229 return ((stacksize(L) < MAXSTACK - BASIC_STACK_SIZE) &&
230 (getCcalls(L) < LUAI_MAXCCALLS - 2));
231}
232
233
234/*

Callers 2

finishgencycleFunction · 0.85
singlestepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected