Don't call abort() in the middle of C++ code
This commit is contained in:
parent
c70db2a751
commit
e36ff852cd
|
@ -446,7 +446,7 @@ static int multiComparePercent(const Token *tok, const char*& haystack, bool emp
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
//unknown %cmd%, abort
|
//unknown %cmd%, abort
|
||||||
std::abort();
|
throw InternalError( tok, "Unexpected command" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*haystack == '|')
|
if (*haystack == '|')
|
||||||
|
|
Loading…
Reference in New Issue