mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-23 11:32:07 +00:00
Use UpperMap for rgblink -S scramble spec matching
This also makes invalid RGBLINK CLI options into fatal errors like the other programs
This commit is contained in:
@@ -103,17 +103,6 @@ void errorNoDump(char const *fmt, ...) {
|
||||
warnings.incrementErrors();
|
||||
}
|
||||
|
||||
void argError(char flag, char const *fmt, ...) {
|
||||
va_list args;
|
||||
fprintf(stderr, "error: Invalid argument for option '%c': ", flag);
|
||||
va_start(args, fmt);
|
||||
vfprintf(stderr, fmt, args);
|
||||
va_end(args);
|
||||
putc('\n', stderr);
|
||||
|
||||
warnings.incrementErrors();
|
||||
}
|
||||
|
||||
void scriptError(char const *name, uint32_t lineNo, char const *fmt, va_list args) {
|
||||
fprintf(stderr, "error: %s(%" PRIu32 "): ", name, lineNo);
|
||||
vfprintf(stderr, fmt, args);
|
||||
|
||||
Reference in New Issue
Block a user