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