Add --error-limit option

git-svn-id: file://localhost/svn/verilator/trunk/verilator@1002 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
Wilson Snyder
2008-03-20 00:14:26 +00:00
parent 4fb8dcfd4e
commit b1565f5b89
5 changed files with 18 additions and 3 deletions
+2 -2
View File
@@ -243,8 +243,8 @@ void V3Error::incWarnings() {
void V3Error::incErrors() {
s_errCount++;
if (errorCount() == MAX_ERRORS) { // Not >= as would otherwise recurse
v3fatal ("Exiting due to too many errors encountered\n");
if (errorCount() == v3Global.opt.errorLimit()) { // Not >= as would otherwise recurse
v3fatal ("Exiting due to too many errors encountered; --error-limit="<<errorCount()<<endl);
}
}