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

Function luaL_checkstack

third-party/lua-5.2.4/src/lauxlib.c:333–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331
332
333LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg) {
334 /* keep some extra space to run error routines, if needed */
335 const int extra = LUA_MINSTACK;
336 if (!lua_checkstack(L, space + extra)) {
337 if (msg)
338 luaL_error(L, "stack overflow (%s)", msg);
339 else
340 luaL_error(L, "stack overflow");
341 }
342}
343
344
345LUALIB_API void luaL_checktype (lua_State *L, int narg, int t) {

Callers 8

getargsFunction · 0.70
dottyFunction · 0.70
generic_readerFunction · 0.70
str_byteFunction · 0.70
push_capturesFunction · 0.70
luaL_setfuncsFunction · 0.70
sortFunction · 0.70
g_readFunction · 0.70

Calls 2

lua_checkstackFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected