diff options
author | H. Peter Anvin <hpa@zytor.com> | 2018-12-11 00:06:29 -0800 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2018-12-12 17:43:25 -0800 |
commit | e2f5edbb3a24db347e4f52cdf134402ab987b085 (patch) | |
tree | 2e1e18e6565a531b39f88b767d8d8a81f555a3ea /include/error.h | |
parent | c0b32a36503e5dd3e109c8c2b40a8c2081111430 (diff) | |
download | nasm-e2f5edbb3a24db347e4f52cdf134402ab987b085.tar.gz |
error: new flag ERR_HERE
ERR_HERE is used to mark messages of the form "... here" so that we
can emit sane output to the list file with filename and line number,
instead of a nonsensical "here" which could point almost anywhere.
This patch contains some changes from the one in the master branch to
make the code cleaner.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/error.h')
-rw-r--r-- | include/error.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/error.h b/include/error.h index d2f04f4c..5a676e67 100644 --- a/include/error.h +++ b/include/error.h @@ -72,6 +72,7 @@ static inline vefunc nasm_set_verror(vefunc ve) * and dump core for reference */ #define ERR_MASK 0x00000007 /* mask off the above codes */ #define ERR_NOFILE 0x00000010 /* don't give source file name/line */ +#define ERR_HERE 0x00000020 /* point to a specific source location */ #define ERR_USAGE 0x00000040 /* print a usage message */ #define ERR_PASS1 0x00000080 /* only print this error on pass 1 */ #define ERR_PASS2 0x00000100 /* only print this error on pass 2 */ |