diff options
author | Bryant Keller <bkeller@assembly.ath.cx> | 2010-07-13 23:49:39 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-07-13 23:49:39 +0400 |
commit | a537d4964ecb3a96840cd6734647e144df41e603 (patch) | |
tree | 6cc884d78573e5919ce6074bbcb143cf8a29169d | |
parent | 6d9b2b59b5f6679c5ed16cc06ed24d432838c8dc (diff) | |
download | nasm-a537d4964ecb3a96840cd6734647e144df41e603.tar.gz |
Documentation: describe %ifenv and friends
Signed-off-by: Bryant Keller <bkeller@assembly.ath.cx>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r-- | doc/changes.src | 2 | ||||
-rw-r--r-- | doc/nasmdoc.src | 9 |
2 files changed, 11 insertions, 0 deletions
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{%!<env>} 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 |