mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-10 00:45:47 -07:00
Fixes an issue on macOS Mojave that was patched in fa1c281e79.
The list of changes can be found under
build/premake/premake5/CHANGES.txt.
This was SVN commit r22021.
15 lines
322 B
Lua
15 lines
322 B
Lua
local function chainpair(f1, f2)
|
|
return function(chunk)
|
|
local ret = f2(f1(chunk))
|
|
if chunk then return ret
|
|
else return (ret or "") .. (f2() or "") end
|
|
end
|
|
end
|
|
|
|
function filter.chain(...)
|
|
local f = select(1, ...)
|
|
for i = 2, select('#', ...) do
|
|
f = chainpair(f, select(i, ...))
|
|
end
|
|
return f
|
|
end
|