mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Color verbose output as magenta
Output RGBASM's lexed tokens at level 5 (TRACE)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user