MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / stackerror

Function stackerror

libraries/AP_Scripting/lua/src/ldo.c:490–495  ·  view source on GitHub ↗

** Check appropriate error for stack overflow ("regular" overflow or ** overflow while handling stack overflow). If 'nCalls' is larger than ** LUAI_MAXCCALLS (which means it is handling a "regular" overflow) but ** smaller than 9/8 of LUAI_MAXCCALLS, does not report an error (to ** allow overflow handling to work) */

Source from the content-addressed store, hash-verified

488** allow overflow handling to work)
489*/
490static void stackerror (lua_State *L) {
491 if (L->nCcalls == LUAI_MAXCCALLS)
492 luaG_runerror(L, "C stack overflow");
493 else if (L->nCcalls >= (LUAI_MAXCCALLS + (LUAI_MAXCCALLS>>3)))
494 luaD_throw(L, LUA_ERRERR); /* error while handing stack error */
495}
496
497
498/*

Callers 1

luaD_callFunction · 0.85

Calls 2

luaG_runerrorFunction · 0.85
luaD_throwFunction · 0.85

Tested by

no test coverage detected