More specific "Symbol name too long" error messages

Identifiers, {interpolations} and \<macroArgs> are distinct
This commit is contained in:
Rangi
2021-04-20 10:37:27 -04:00
committed by Eldred Habert
parent fe3521c7a4
commit c3e27217dd

View File

@@ -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';