Skip to content

Commit

Permalink
Add space between string literal and macro
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AMDmi3 committed May 14, 2015
1 parent e563860 commit c599819
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ai/ai_plan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/stratagus/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,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");
Expand Down Expand Up @@ -897,7 +897,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");
Expand Down

0 comments on commit c599819

Please sign in to comment.