mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
More specific "Symbol name too long" error messages
Identifiers, {interpolations} and \<macroArgs> are distinct
This commit is contained in:
@@ -753,7 +753,7 @@ static uint32_t readBracketedMacroArgNum(void)
|
||||
}
|
||||
|
||||
if (i == sizeof(symName)) {
|
||||
warning(WARNING_LONG_STR, "Symbol name too long\n");
|
||||
warning(WARNING_LONG_STR, "Bracketed symbol name too long\n");
|
||||
i--;
|
||||
}
|
||||
symName[i] = '\0';
|
||||
@@ -1396,7 +1396,7 @@ static char const *readInterpolation(unsigned int depth)
|
||||
}
|
||||
|
||||
if (i == sizeof(symName)) {
|
||||
warning(WARNING_LONG_STR, "Symbol name too long\n");
|
||||
warning(WARNING_LONG_STR, "Interpolated symbol name too long\n");
|
||||
i--;
|
||||
}
|
||||
symName[i] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user