Internals: Favor UASSERT over v3fatalSrc. No functional change intended.

This commit is contained in:
Wilson Snyder
2024-01-05 18:00:06 -05:00
parent 47b129bf07
commit a36a07c297
14 changed files with 41 additions and 57 deletions
+2 -3
View File
@@ -256,9 +256,8 @@ void V3Error::init() {
describedEachWarn(static_cast<V3ErrorCode>(i), false);
pretendError(static_cast<V3ErrorCode>(i), V3ErrorCode{i}.pretendError());
}
if (VL_UNCOVERABLE(string{V3ErrorCode{V3ErrorCode::_ENUM_MAX}.ascii()} != " MAX")) {
v3fatalSrc("Enum table in V3ErrorCode::EC_ascii() is munged");
}
UASSERT(std::string{V3ErrorCode{V3ErrorCode::_ENUM_MAX}.ascii()} == " MAX",
"Enum table in V3ErrorCode::EC_ascii() is munged");
}
string V3Error::lineStr(const char* filename, int lineno) VL_PURE {