Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOliver Kuckertz <oliver.kuckertz@mologie.de>2013-06-13 20:24:10 +0400
committerOliver Kuckertz <oliver.kuckertz@mologie.de>2013-06-13 20:24:10 +0400
commit8ab4b4f4c1040c648b38fd9d0142f09b19ba649e (patch)
tree09b9dcc8265be3412123f1b216d19ccf4b4f9e2c /src
parent20fd5a0c28f49618218d3c8d43c742fbab68edf0 (diff)
Fixed generating xcode4 projects with preprocessor definitions including quotes
Diffstat (limited to 'src')
-rw-r--r--src/actions/xcode/xcode_common.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actions/xcode/xcode_common.lua b/src/actions/xcode/xcode_common.lua
index b9f67de..2e3d0a6 100644
--- a/src/actions/xcode/xcode_common.lua
+++ b/src/actions/xcode/xcode_common.lua
@@ -224,7 +224,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