-
Committer:
Simon Tatham
-
Date:
2019-09-09 18:12:02 UTC
-
Revision ID:
git-v1:00112549bfd15538e9176d78e6203b105ea7f381
Convert a few more universal asserts to unreachable().
When I introduced the unreachable() macro in commit 0112936ef, I
searched the source code for assert(0) and assert(false), together
with their variant form assert(0 && "explanatory text"). But I didn't
search for assert(!"explanatory text"), which is the form I used to
use before finding that assert(0 && "text") seemed to be preferred in
other code bases.
So, here's a belated replacement of all the assert(!"stuff") macros
with further instances of unreachable().