| 276 | |
| 277 | |
| 278 | void luaK_checkstack (FuncState *fs, int n) { |
| 279 | int newstack = fs->freereg + n; |
| 280 | if (newstack > fs->f->maxstacksize) { |
| 281 | if (newstack >= MAXREGS) |
| 282 | luaX_syntaxerror(fs->ls, "function or expression too complex"); |
| 283 | fs->f->maxstacksize = cast_byte(newstack); |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | |
| 288 | void luaK_reserveregs (FuncState *fs, int n) { |
no test coverage detected