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.
14 lines
231 B
Lua
14 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
|