From a537d4964ecb3a96840cd6734647e144df41e603 Mon Sep 17 00:00:00 2001 From: Bryant Keller Date: Tue, 13 Jul 2010 23:49:39 +0400 Subject: [PATCH] Documentation: describe %ifenv and friends Signed-off-by: Bryant Keller Signed-off-by: Cyrill Gorcunov --- doc/changes.src | 2 ++ doc/nasmdoc.src | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/doc/changes.src b/doc/changes.src index 5e7bf06e..e64aae74 100644 --- a/doc/changes.src +++ b/doc/changes.src @@ -9,6 +9,8 @@ since 2007. \S{cl-2.09} Version 2.09 +\b \c{%ifenv}, \c{%elifenv}, \c{%ifnenv}, and \c{%elifnenv} directives introduced. + \b Fixed NULL dereference if environment variable is missed. \b Updates of new AVX v7 Intel instruciotns. diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index e5d54881..722f0991 100644 --- a/doc/nasmdoc.src +++ b/doc/nasmdoc.src @@ -3149,6 +3149,15 @@ any tokens at all, whitespace excepted. The usual \i\c{%elifempty}, \i\c\{%ifnempty}, and \i\c{%elifnempty} variants are also provided. +\S{ifenv} \i\c{%ifenv}: Test If Environment Variable Exists + +The conditional assembly construct \c{%ifenv} assembles the +subsequent code if and only if the environment variable referenced by +the \c{%!} directive exists. + +The usual \i\c{%elifenv}, \i\c\{%ifnenv}, and \i\c{%elifnenv} +variants are also provided. + \H{rep} \i{Preprocessor Loops}\I{repeating code}: \i\c{%rep} NASM's \c{TIMES} prefix, though useful, cannot be used to invoke a -- 2.11.4.GIT