mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Remove errx and errors.hpp (#1737)
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
#include "diagnostics.hpp"
|
||||
|
||||
void warnx(char const *fmt, ...) {
|
||||
va_list ap;
|
||||
fputs("warning: ", stderr);
|
||||
va_start(ap, fmt);
|
||||
vfprintf(stderr, fmt, ap);
|
||||
va_end(ap);
|
||||
putc('\n', stderr);
|
||||
}
|
||||
|
||||
void WarningState::update(WarningState other) {
|
||||
if (other.state != WARNING_DEFAULT) {
|
||||
state = other.state;
|
||||
|
||||
Reference in New Issue
Block a user