mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-23 03:22:08 +00:00
Say which macro argument caused an error when one does
This commit is contained in:
@@ -299,9 +299,9 @@ uint32_t PutMacroArg(char *src, uint32_t size)
|
|||||||
if (s != NULL)
|
if (s != NULL)
|
||||||
yyunputstr(s);
|
yyunputstr(s);
|
||||||
else
|
else
|
||||||
yyerror("Macro argument not defined");
|
yyerror("Macro argument '\\%c' not defined", src[1]);
|
||||||
} else {
|
} else {
|
||||||
yyerror("Invalid macro argument");
|
yyerror("Invalid macro argument '\\%c'", src[1]);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user