MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaL_checkstack

Function luaL_checkstack

src/Chain/libraries/glua/lauxlib.cpp:369–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367
368
369LUALIB_API void luaL_checkstack(lua_State *L, int space, const char *msg) {
370 /* keep some extra space to run error routines, if needed */
371 const int extra = LUA_MINSTACK;
372 if (!lua_checkstack(L, space + extra)) {
373 if (msg)
374 luaL_error(L, "stack overflow (%s)", msg);
375 else
376 luaL_error(L, "stack overflow");
377 }
378}
379
380
381LUALIB_API void luaL_checktype(lua_State *L, int arg, int t) {

Callers 15

codepointFunction · 0.85
sortFunction · 0.85
str_byteFunction · 0.85
push_capturesFunction · 0.85
str_unpackFunction · 0.85
g_readFunction · 0.85
io_readlineFunction · 0.85
luaL_tracebackFunction · 0.85
pushargsFunction · 0.85
luaL_setfuncsFunction · 0.85
generic_readerFunction · 0.85
pushargsFunction · 0.85

Calls 2

lua_checkstackFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected