Merge pull request #579 from Dmitry-Me/dontCallAbort
Don't call abort() in the middle of C++ code
This commit is contained in:
commit
b637e70d63
|
@ -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