diff options
author | rubidium <rubidium@openttd.org> | 2009-07-31 13:25:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-31 13:25:20 +0000 |
commit | 097e79a86de967c416d71d934a325d883d917fd5 (patch) | |
tree | 5a6a23be557b11e2963262c88946b7791343920b /src/yapf | |
parent | c2fdb85c0dce9cfa61045ccee16052f0e31d7078 (diff) | |
download | openttd-097e79a86de967c416d71d934a325d883d917fd5.tar.xz |
(svn r17001) -Codechange: replace some more assert(0)s to NOT_REACHED() and document why they (assert(0)) have to stay for the remaining cases.
Diffstat (limited to 'src/yapf')
-rw-r--r-- | src/yapf/yapf_base.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/yapf/yapf_base.hpp b/src/yapf/yapf_base.hpp index b29e886e4..c33c08777 100644 --- a/src/yapf/yapf_base.hpp +++ b/src/yapf/yapf_base.hpp @@ -275,9 +275,7 @@ public: * - PfCalcEstimate() gives too large numbers * - PfCalcCost() gives too small numbers * - You have used negative cost penalty in some cases (cost bonus) */ - assert(0); - - return; + NOT_REACHED(); } return; } |