MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaK_checkstack

Function luaK_checkstack

Source/Misc/lua/src/lua.c:3868–3875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3866
3867
3868void luaK_checkstack (FuncState *fs, int n) {
3869int newstack = fs->freereg + n;
3870if (newstack > fs->f->maxstacksize) {
3871if (newstack >= MAXSTACK)
3872luaX_syntaxerror(fs->ls, "function or expression too complex");
3873fs->f->maxstacksize = cast_byte(newstack);
3874}
3875}
3876
3877
3878void luaK_reserveregs (FuncState *fs, int n) {

Callers 2

luaK_reserveregsFunction · 0.85
forlistFunction · 0.85

Calls 1

luaX_syntaxerrorFunction · 0.85

Tested by

no test coverage detected