diff options
author | Jason Perkins <starkos@industriousone.com> | 2013-09-11 16:49:56 +0400 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2013-09-11 16:49:56 +0400 |
commit | 031c858a08612a9a8bc0b79f5bb09c1407323efc (patch) | |
tree | 9581e4d1643a7edcd1b9424f9053ad7e3baa7834 /src | |
parent | 87228f81fe5ec9f10980d1ed343fa103aa6d3a70 (diff) | |
parent | 8ab4b4f4c1040c648b38fd9d0142f09b19ba649e (diff) |
Merged in mologie/premake-stable/macosx-quotes (pull request #14)
Fixed generating xcode4 projects with preprocessor definitions including quotes
Diffstat (limited to 'src')
-rw-r--r-- | src/actions/xcode/xcode_common.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actions/xcode/xcode_common.lua b/src/actions/xcode/xcode_common.lua index 5a610bf..4d413d4 100644 --- a/src/actions/xcode/xcode_common.lua +++ b/src/actions/xcode/xcode_common.lua @@ -228,7 +228,8 @@ if #list > 0 then _p(4,'%s = (', tag) for _, item in ipairs(list) do - _p(5, '"%s",', item) + local escaped_item = item:gsub("\"", "\\\"") + _p(5, '"%s",', escaped_item) end _p(4,');') end |