From 28e47b3ecc706f3770642af3a9db399ee3b2500c Mon Sep 17 00:00:00 2001 From: Alex Kuhrt <alex@qrt> Date: Mon, 1 May 2017 17:41:38 +0200 Subject: [PATCH] Fix #205 unable to find string literal operator operator"" _C_ --- src/ai/ai_plan.cpp | 2 +- src/stratagus/script.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ai/ai_plan.cpp b/src/ai/ai_plan.cpp index 645671b96..773b54a7d 100644 --- a/src/ai/ai_plan.cpp +++ b/src/ai/ai_plan.cpp @@ -343,7 +343,7 @@ int GetTotalBoardCapacity(ITERATOR begin, ITERATOR end) int AiForce::PlanAttack() { CPlayer &player = *AiPlayer->Player; - DebugPrint("%d: Planning for force #%lu of player #%d\n"_C_ player.Index + DebugPrint("%d: Planning for force #%lu of player #%d\n" _C_ player.Index _C_(long unsigned int)(this - & (AiPlayer->Force[0])) _C_ player.Index); TerrainTraversal transporterTerrainTraversal; diff --git a/src/stratagus/script.cpp b/src/stratagus/script.cpp index 2763c2a10..bd8d240ac 100644 --- a/src/stratagus/script.cpp +++ b/src/stratagus/script.cpp @@ -767,7 +767,7 @@ NumberDesc *CclParseNumberDesc(lua_State *l) lua_pop(l, 1); // table. } else { lua_pop(l, 1); - LuaError(l, "unknow condition '%s'"_C_ key); + LuaError(l, "unknow condition '%s'" _C_ key); } } else { LuaError(l, "Parse Error in ParseNumber"); @@ -881,7 +881,7 @@ StringDesc *CclParseStringDesc(lua_State *l) res->D.PlayerName = CclParseNumberDesc(l); } else { lua_pop(l, 1); - LuaError(l, "unknow condition '%s'"_C_ key); + LuaError(l, "unknow condition '%s'" _C_ key); } } else { LuaError(l, "Parse Error in ParseString");