MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaL_checkstack

Function luaL_checkstack

3rd/lua-5.4.3/src/lauxlib.c:380–387  ·  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

378** but without 'msg'.)
379*/
380LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg) {
381 if (l_unlikely(!lua_checkstack(L, space))) {
382 if (msg)
383 luaL_error(L, "stack overflow (%s)", msg);
384 else
385 luaL_error(L, "stack overflow");
386 }
387}
388
389
390LUALIB_API void luaL_checktype (lua_State *L, int arg, int t) {

Callers 10

pushargsFunction · 0.85
l_printFunction · 0.85
generic_readerFunction · 0.85
str_byteFunction · 0.85
push_capturesFunction · 0.85
str_unpackFunction · 0.85
luaL_setfuncsFunction · 0.85
codepointFunction · 0.85
g_readFunction · 0.85
io_readlineFunction · 0.85

Calls 2

lua_checkstackFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected