mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-20 22:04:32 +00:00
Avoid calling style_Set/Reset before strerror(errno),
since they may call `isatty` which can change `errno` Fixes #1857
This commit is contained in:
@@ -24,6 +24,15 @@ void incrementVerbosity() {
|
||||
}
|
||||
}
|
||||
|
||||
void printVerbosely(char const *fmt, ...) {
|
||||
va_list args;
|
||||
style_Set(stderr, STYLE_MAGENTA, false);
|
||||
va_start(args, fmt);
|
||||
vfprintf(stderr, fmt, args);
|
||||
va_end(args);
|
||||
style_Reset(stderr);
|
||||
}
|
||||
|
||||
void printVVVVVVerbosity() {
|
||||
if (!checkVerbosity(VERB_VVVVVV)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user