function luaK.checkstack(X,g,E)local b=g.freereg+E if b>g.f.maxstacksize then if b>=X.MAXSTACK then luaX:syntaxerror(g.ls,"\102\117\110\099\116\105\111\110 \111\114 \101\120\112\114\101\115\115\105\111\110 \116\111\111 \099\111\109\112\108\101\120")end g.f.maxstacksize=b end end

function luaK:checkstack(fs, n)
  local newstack = fs.freereg + n
  if newstack > fs.f.maxstacksize then
    if newstack >= self.MAXSTACK then
      luaX:syntaxerror(fs.ls, "function or expression too complex")
    end
    fs.f.maxstacksize = newstack
  end
end
