mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 12:15:39 +00:00
Remove errx and errors.hpp (#1737)
This commit is contained in:
1 parent
9acba4b412
commit
5e43ece578
179 files changed
+366
-393
No files matched your search
@@ -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