Show the expanded macro stack when displaying diagnostics
commit4def1a8db462548f60b3b5b44c2ee585c21af9e0
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 9 May 2016 20:59:44 +0000 (9 13:59 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 9 May 2016 20:59:44 +0000 (9 13:59 -0700)
tree4d179aa1f1de2a607927cfd0aff0617450c0365c
parentb4f734fb844dbc4cc29304e952b33aa9fc96e398
Show the expanded macro stack when displaying diagnostics

It can be hard to find errors inside potentially nested macros.
Show the mmacro expansion stack when printing diagnostics.
Note that a list file doesn't help for errors that are detected
before the code-generation pass.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
nasm.c
nasm.h
nasmlib.c
nasmlib.h
preproc-nop.c
preproc.c
test/macroerr.asm [new file with mode: 0644]
test/macroerr.inc [new file with mode: 0644]