mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
doc: document the use of macros in %error
Document the use of macros in %error and %warning, valid since 2.03. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
1dc23a1b39
commit
233c4945b1
@ -3421,7 +3421,14 @@ Similarly, \c{%warning} issues a warning, but allows assembly to continue:
|
||||
\c %endif
|
||||
|
||||
It is optional for the message string after \c{%error} or \c{%warning}
|
||||
to be quoted.
|
||||
to be quoted. If it is \e{not}, then single-line macros are expanded
|
||||
in it, which can be used to display more information to the user. For
|
||||
example:
|
||||
|
||||
\c %if foo > 64
|
||||
\c %assign foo_over foo-64
|
||||
\c %error foo is foo_over bytes too large
|
||||
\c %endif
|
||||
|
||||
|
||||
\H{otherpreproc} \i{Other Preprocessor Directives}
|
||||
|
Loading…
x
Reference in New Issue
Block a user