mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Use colored/styled text output for diagnostics and usage info (#1775)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include "verbosity.hpp"
|
||||
|
||||
#include <array>
|
||||
@@ -8,16 +10,18 @@
|
||||
|
||||
static Verbosity verbosity = VERB_NONE;
|
||||
|
||||
bool checkVerbosity(Verbosity level) {
|
||||
return verbosity >= level;
|
||||
}
|
||||
|
||||
// LCOV_EXCL_START
|
||||
|
||||
void incrementVerbosity() {
|
||||
if (verbosity < VERB_VVVVVV) {
|
||||
verbosity = static_cast<Verbosity>(verbosity + 1);
|
||||
}
|
||||
}
|
||||
|
||||
bool checkVerbosity(Verbosity level) {
|
||||
return verbosity >= level;
|
||||
}
|
||||
|
||||
void printVVVVVVerbosity() {
|
||||
if (!checkVerbosity(VERB_VVVVVV)) {
|
||||
return;
|
||||
@@ -67,3 +71,5 @@ void printVVVVVVerbosity() {
|
||||
}
|
||||
putc('\n', stderr);
|
||||
}
|
||||
|
||||
// LCOV_EXCL_STOP
|
||||
|
||||
Reference in New Issue
Block a user