mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-23 11:32:07 +00:00
Split up the linkerscript lexer and layout actions
This commit is contained in:
@@ -103,7 +103,7 @@ void errorNoDump(char const *fmt, ...) {
|
||||
warnings.incrementErrors();
|
||||
}
|
||||
|
||||
void argErr(char flag, char const *fmt, ...) {
|
||||
void argError(char flag, char const *fmt, ...) {
|
||||
va_list args;
|
||||
fprintf(stderr, "error: Invalid argument for option '%c': ", flag);
|
||||
va_start(args, fmt);
|
||||
@@ -114,6 +114,14 @@ void argErr(char flag, char const *fmt, ...) {
|
||||
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);
|
||||
putc('\n', stderr);
|
||||
|
||||
warnings.incrementErrors();
|
||||
}
|
||||
|
||||
[[noreturn]]
|
||||
void fatal(FileStackNode const *src, uint32_t lineNo, char const *fmt, ...) {
|
||||
va_list args;
|
||||
|
||||
Reference in New Issue
Block a user