shithub: rgbds

Download patch

ref: c3e27217ddb534a2837c4d6e80fe869d3aca6b08
parent: fe3521c7a4d8681fe68ea3b139761780c630a563
author: Rangi <[email protected]>
date: Tue Apr 20 06:37:27 EDT 2021

More specific "Symbol name too long" error messages

Identifiers, {interpolations} and \<macroArgs> are distinct

--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -753,7 +753,7 @@
 		}
 
 		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 @@
 	}
 
 	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';