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

Function checkstack

third-party/lua-5.5.0/src/ldblib.c:36–39  ·  view source on GitHub ↗

** If L1 != L, L1 can be in any state, and therefore there are no ** guarantees about its stack space; any push in L1 must be ** checked. */

Source from the content-addressed store, hash-verified

34** checked.
35*/
36static void checkstack (lua_State *L, lua_State *L1, int n) {
37 if (l_unlikely(L != L1 && !lua_checkstack(L1, n)))
38 luaL_error(L, "stack overflow");
39}
40
41
42static int db_getregistry (lua_State *L) {

Callers 5

db_getinfoFunction · 0.70
db_getlocalFunction · 0.70
db_setlocalFunction · 0.70
db_sethookFunction · 0.70
db_gethookFunction · 0.70

Calls 2

lua_checkstackFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected