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

Function luaL_checkstack

third-party/lua-5.5.0/src/lauxlib.c:386–393  ·  view source on GitHub ↗

** Ensures the stack has at least 'space' extra slots, raising an error ** if it cannot fulfill the request. (The error handling needs a few ** extra slots to format the error message. In case of an error without ** this extra space, Lua will generate the same 'stack overflow' error, ** but without 'msg'.) */

Source from the content-addressed store, hash-verified

384** but without 'msg'.)
385*/
386LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg) {
387 if (l_unlikely(!lua_checkstack(L, space))) {
388 if (msg)
389 luaL_error(L, "stack overflow (%s)", msg);
390 else
391 luaL_error(L, "stack overflow");
392 }
393}
394
395
396LUALIB_API void luaL_checktype (lua_State *L, int arg, int t) {

Callers 11

pushargsFunction · 0.70
l_printFunction · 0.70
generic_readerFunction · 0.70
str_byteFunction · 0.70
push_capturesFunction · 0.70
str_unpackFunction · 0.70
pushglobalfuncnameFunction · 0.70
luaL_setfuncsFunction · 0.70
codepointFunction · 0.70
g_readFunction · 0.70
io_readlineFunction · 0.70

Calls 2

lua_checkstackFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected