Report errors about labels in macros.

This commit is contained in:
achan1989 2019-04-27 14:01:52 +01:00
parent 49c2010b63
commit 1140061529

View File

@ -1537,7 +1537,7 @@ public class SleighCompile extends SleighBase {
entry("buildMacro", sym, rtl);
String errstring = checkSymbols(symtab.getCurrentScope());
if (errstring.length() != 0) {
reportError(sym.getLocation(), " in definition of macro " + sym.getName() + ":");
reportError(sym.getLocation(), " in definition of macro " + sym.getName() + ":" + errstring);
return;
}
if (!expandMacros(rtl)) {