From a21cef71908be8d93009542a324dceef9c14d855 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Fri, 30 Aug 2019 20:57:11 +0200 Subject: [PATCH] Say which macro argument caused an error when one does --- src/asm/globlex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asm/globlex.c b/src/asm/globlex.c index 64235732..7884b8c6 100644 --- a/src/asm/globlex.c +++ b/src/asm/globlex.c @@ -299,9 +299,9 @@ uint32_t PutMacroArg(char *src, uint32_t size) if (s != NULL) yyunputstr(s); else - yyerror("Macro argument not defined"); + yyerror("Macro argument '\\%c' not defined", src[1]); } else { - yyerror("Invalid macro argument"); + yyerror("Invalid macro argument '\\%c'", src[1]); } return 0; }