preproc.c: tell us which macro definition has too many defaults

We can always be nicer to the user by being more verbose.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2018-11-28 13:05:42 -08:00
parent 9953992686
commit 1722fcf81c

View File

@ -2135,7 +2135,7 @@ static bool parse_mmacro_spec(Token *tline, MMacro *def, const char *directive)
if (def->defaults && def->ndefs > def->nparam_max - def->nparam_min &&
!def->plus)
nasm_warnf(ERR_PASS1|ERR_WARN_MDP, "too many default macro parameters");
nasm_warnf(ERR_PASS1|ERR_WARN_MDP, "too many default macro parameters in macro `%s'", def->name);
return true;
}