Color verbose output as magenta

Output RGBASM's lexed tokens at level 5 (TRACE)
This commit is contained in:
Rangi42
2025-08-05 00:00:57 -04:00
parent ac75a085fa
commit 2cae47a5a2
9 changed files with 35 additions and 2 deletions

View File

@@ -3,11 +3,15 @@
#ifndef RGBDS_VERBOSITY_HPP
#define RGBDS_VERBOSITY_HPP
#include "style.hpp"
// This macro does not evaluate its arguments unless the condition is true.
#define verbosePrint(level, ...) \
do { \
if (checkVerbosity(level)) { \
style_Set(stderr, STYLE_MAGENTA, false); \
fprintf(stderr, __VA_ARGS__); \
style_Reset(stderr); \
} \
} while (0)