From 516cdec4894096305f5002b922ba02d49cb3e816 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 2 Oct 2009 09:28:00 +0000 Subject: Optimised auto dependency generation Added control c handler in windows Now throw string exceptions instead of integer exceptions. --- tools/mhmake/src/mhmakeparser.y | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/mhmake/src/mhmakeparser.y') diff --git a/tools/mhmake/src/mhmakeparser.y b/tools/mhmake/src/mhmakeparser.y index ee26dd92b..68b0a489e 100644 --- a/tools/mhmake/src/mhmakeparser.y +++ b/tools/mhmake/src/mhmakeparser.y @@ -111,8 +111,7 @@ ruledef: expression_nocolorequal rulecolon maybeemptyexpression #ifdef _DEBUG if (!ExpandExpression($1).size()) { - printf("Empty left hand side in rule: %s : %s\n",$1.c_str(),$3.c_str()); - throw(1); + throw string("Empty left hand side in rule: ") + $1 + " : " + $3; } #endif SplitToItems(ExpandExpression($1),*m_pCurrentItems,m_MakeDir); -- cgit v1.2.3