diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2016-05-09 13:59:44 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2016-05-09 13:59:44 -0700 |
commit | 4def1a8db462548f60b3b5b44c2ee585c21af9e0 (patch) | |
tree | 4d179aa1f1de2a607927cfd0aff0617450c0365c /test | |
parent | b4f734fb844dbc4cc29304e952b33aa9fc96e398 (diff) | |
download | nasm-4def1a8db462548f60b3b5b44c2ee585c21af9e0.tar.gz |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/macroerr.asm | 11 | ||||
-rw-r--r-- | test/macroerr.inc | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/macroerr.asm b/test/macroerr.asm new file mode 100644 index 00000000..5f1c93e2 --- /dev/null +++ b/test/macroerr.asm @@ -0,0 +1,11 @@ +%include "macroerr.inc" + +%macro bluttan 1 + mov eax,%1 +%endmacro + + bluttan ptr + blej ptr + dd ptr, ptr + +ptr: diff --git a/test/macroerr.inc b/test/macroerr.inc new file mode 100644 index 00000000..f40f7e60 --- /dev/null +++ b/test/macroerr.inc @@ -0,0 +1,3 @@ +%macro blej 1 + mov eax,%1 +%endmacro |