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

Function luaE_checkcstack

third-party/lua-5.5.0/src/lstate.c:131–136  ·  view source on GitHub ↗

** Called when 'getCcalls(L)' larger or equal to LUAI_MAXCCALLS. ** If equal, raises an overflow error. If value is larger than ** LUAI_MAXCCALLS (which means it is handling an overflow) but ** not much larger, does not report an error (to allow overflow ** handling to work). */

Source from the content-addressed store, hash-verified

129** handling to work).
130*/
131void luaE_checkcstack (lua_State *L) {
132 if (getCcalls(L) == LUAI_MAXCCALLS)
133 luaG_runerror(L, "C stack overflow");
134 else if (getCcalls(L) >= (LUAI_MAXCCALLS / 10 * 11))
135 luaD_errerr(L); /* error while handling stack error */
136}
137
138
139LUAI_FUNC void luaE_incCstack (lua_State *L) {

Callers 2

luaE_incCstackFunction · 0.70
ccallFunction · 0.70

Calls 2

luaG_runerrorFunction · 0.70
luaD_errerrFunction · 0.70

Tested by

no test coverage detected