mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Error messages refer to "undefined" symbols and sections
This commit is contained in:
@@ -13,6 +13,10 @@ bool isNewline(int c) {
|
||||
return c == '\r' || c == '\n';
|
||||
}
|
||||
|
||||
bool isPrintable(int c) {
|
||||
return c >= ' ' && c <= '~';
|
||||
}
|
||||
|
||||
bool startsIdentifier(int c) {
|
||||
// This returns false for anonymous labels, which internally start with a '!',
|
||||
// and for section fragment literal labels, which internally start with a '$'.
|
||||
@@ -34,7 +38,7 @@ char const *printChar(int c) {
|
||||
}
|
||||
|
||||
// Handle printable ASCII characters
|
||||
if (c >= ' ' && c <= '~') {
|
||||
if (isPrintable(c)) {
|
||||
buf[0] = '\'';
|
||||
buf[1] = c;
|
||||
buf[2] = '\'';
|
||||
|
||||
Reference in New Issue
Block a user