Skip to content

Commit c599819

Browse files
committed
Add space between string literal and macro
This fixes compilation with c++11: src/ai/ai_plan.cpp:346:58: error: no matching literal operator for call to 'operator _C_' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
1 parent e563860 commit c599819

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ai/ai_plan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ int GetTotalBoardCapacity(ITERATOR begin, ITERATOR end)
343343
int AiForce::PlanAttack()
344344
{
345345
CPlayer &player = *AiPlayer->Player;
346-
DebugPrint("%d: Planning for force #%lu of player #%d\n"_C_ player.Index
346+
DebugPrint("%d: Planning for force #%lu of player #%d\n" _C_ player.Index
347347
_C_(long unsigned int)(this - & (AiPlayer->Force[0])) _C_ player.Index);
348348

349349
TerrainTraversal transporterTerrainTraversal;

src/stratagus/script.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ NumberDesc *CclParseNumberDesc(lua_State *l)
772772
lua_pop(l, 1); // table.
773773
} else {
774774
lua_pop(l, 1);
775-
LuaError(l, "unknow condition '%s'"_C_ key);
775+
LuaError(l, "unknow condition '%s'" _C_ key);
776776
}
777777
} else {
778778
LuaError(l, "Parse Error in ParseNumber");
@@ -897,7 +897,7 @@ StringDesc *CclParseStringDesc(lua_State *l)
897897
res->D.PlayerName = CclParseNumberDesc(l);
898898
} else {
899899
lua_pop(l, 1);
900-
LuaError(l, "unknow condition '%s'"_C_ key);
900+
LuaError(l, "unknow condition '%s'" _C_ key);
901901
}
902902
} else {
903903
LuaError(l, "Parse Error in ParseString");

0 commit comments

Comments
 (0)