mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Color "warning:" yellow in warnx
This commit is contained in:
@@ -2,9 +2,13 @@
|
|||||||
|
|
||||||
#include "diagnostics.hpp"
|
#include "diagnostics.hpp"
|
||||||
|
|
||||||
|
#include "style.hpp"
|
||||||
|
|
||||||
void warnx(char const *fmt, ...) {
|
void warnx(char const *fmt, ...) {
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
style_Set(stderr, STYLE_YELLOW, true);
|
||||||
fputs("warning: ", stderr);
|
fputs("warning: ", stderr);
|
||||||
|
style_Reset(stderr);
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|||||||
Reference in New Issue
Block a user