/* Check register-stack level, keeping track of its maximum size in field 'maxstacksize'  */
void luaK_checkstack(FuncState *fs, int n)
/* Check register-stack level, keeping track of its maximum size in field 'maxstacksize'  */
void luaK_checkstack(FuncState *fs, int n)
{
    if (newstack >= MAXREGS)
      luaX_syntaxerror(fs->ls,
        "function or expression needs too many registers");
    fs->f->maxstacksize = cast_byte(newstack);
  }
}