function luaK.checkstack(w,O,X)local G=O.freereg+X if G>O.f.maxstacksize then if G>=w.MAXSTACK then luaX:syntaxerror(O.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 O.f.maxstacksize=G end end
------------------------------------------------------------------------
--
-- * used in luaK:reserveregs(), (lparser) luaY:forlist()
------------------------------------------------------------------------
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
