Revert "There is no standardized interface to add an additional message to assert errors. A portable way to include one is to use a comma operator provided it has not been overloaded"

This reverts commit 32a27e986e.
This commit is contained in:
Patricia Aas 2021-09-10 15:35:06 +02:00
parent 32a27e986e
commit 90f546f1b2
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ Position Inky::target(const GameState & gameState) const {
targetPosition.y += 2;
break;
case Direction::NONE:
assert(("Pacman should be moving", false));
assert(false && "Pacman should be moving!");
break;
}

View File

@ -43,7 +43,7 @@ Position Pinky::target(const GameState & gameState) const {
targetPosition.y += 4;
break;
case Direction::NONE:
assert(("Pacman should be moving", false));
assert(false && "Pacman should be moving!");
break;
}
return gridPositionToPosition(targetPosition);