mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-19 21:47:19 +00:00
2c167153e9
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
231 B
Lua
15 lines
231 B
Lua
function source.chain(src, f)
|
|
return function()
|
|
if not src then
|
|
return nil
|
|
end
|
|
local chunk, err = src()
|
|
if not chunk then
|
|
src = nil
|
|
return f(nil)
|
|
else
|
|
return f(chunk)
|
|
end
|
|
end
|
|
end
|