From 097e79a86de967c416d71d934a325d883d917fd5 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 31 Jul 2009 13:25:20 +0000 Subject: (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. --- src/yapf/yapf_base.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/yapf') 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; } -- cgit v1.2.3-54-g00ecf