mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-03 10:45:37 +00:00
Color "warning:" yellow in warnx
This commit is contained in:
1 parent
2d5f4d8910
commit
70d129fcd7
1 file changed
+4
@@ -2,9 +2,13 @@
|
||||
|
||||
#include "diagnostics.hpp"
|
||||
|
||||
#include "style.hpp"
|
||||
|
||||
void warnx(char const *fmt, ...) {
|
||||
va_list ap;
|
||||
style_Set(stderr, STYLE_YELLOW, true);
|
||||
fputs("warning: ", stderr);
|
||||
style_Reset(stderr);
|
||||
va_start(ap, fmt);
|
||||
vfprintf(stderr, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
Reference in new issue
Block a user