[nasm:master] doc: add clarification to %sel()

nasm-bot for H. Peter Anvin hpa at zytor.com
Sun Nov 13 23:03:05 PST 2022


Commit-ID:  02384ec6ac858549c3aef77d794efc1df38f4a91
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=02384ec6ac858549c3aef77d794efc1df38f4a91
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 13 Nov 2022 23:02:05 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 13 Nov 2022 23:02:05 -0800

doc: add clarification to %sel()

Add clarification that %sel(), like %cond(), never expands
non-selected arguments.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 doc/nasmdoc.src | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index 17eca992..745e6536 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -2919,6 +2919,8 @@ expands to nothing.
 \c %define b 2
 \c %xdefine bstr %sel(b,"one","two","three") ; %define bstr "two"
 
+The arguments not selected are never expanded.
+
 
 \S{f_str} \i\c\{%str()} Function
 


More information about the Nasm-commits mailing list