mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Implement a single nbErrors counter inside generic diagnostic code
This commit is contained in:
@@ -59,6 +59,13 @@ struct Diagnostics {
|
||||
std::vector<WarningFlag<L>> warningFlags;
|
||||
std::vector<ParamWarning<W>> paramWarnings;
|
||||
DiagnosticsState<W> state;
|
||||
uint64_t nbErrors;
|
||||
|
||||
void incrementErrors() {
|
||||
if (nbErrors != UINT64_MAX) {
|
||||
++nbErrors;
|
||||
}
|
||||
}
|
||||
|
||||
WarningBehavior getWarningBehavior(W id) const;
|
||||
std::string processWarningFlag(char const *flag);
|
||||
|
||||
Reference in New Issue
Block a user