summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Kanios <keith@kanios.net>2009-10-25 14:06:24 -0500
committerKeith Kanios <keith@kanios.net>2009-10-25 14:06:24 -0500
commit4ea846623aa7633ac010504b013cc1c73a5fc09a (patch)
tree2816fbe572ff9c423f3166a3b78e1c983233f0cf
parent3c0d91f3d5903900f477b8df1a5ca3ef312abab2 (diff)
downloadnasm-4ea846623aa7633ac010504b013cc1c73a5fc09a.tar.gz
changes.src: document preprocessor directives added since 2.07
nasmdoc.src: document %exitmacro
-rw-r--r--doc/changes.src11
-rw-r--r--doc/nasmdoc.src16
2 files changed, 27 insertions, 0 deletions
diff --git a/doc/changes.src b/doc/changes.src
index 88b3431a..dc777285 100644
--- a/doc/changes.src
+++ b/doc/changes.src
@@ -11,8 +11,18 @@ since 2007.
\b A number of enhancements/fixes in macros area.
+\b Support for arbitrarily terminating macro expansions \c{%exitmacro}.
+ See \k{exitmacro}.
+
+\b Support for recursive macro expansion \c{%rmacro/irmacro}.
+ See \k{mlrmacro}.
+
+\b Support for converting strings to tokens. See \k{deftok}.
+
\b Fuzzy operand size logic introduced.
+\b Fix Macho-O alignment bug.
+
\b Fix crashes with -fwin32 on file with many exports.
\b Fix stack overrun for too long [DEBUG id].
@@ -25,6 +35,7 @@ since 2007.
\b Warn a user if a constant too long (and as a result will be stripped).
+
\S{cl-2.07} Version 2.07
\b NASM is now under the 2-clause BSD license. See \k{legal}.
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index ff5788da..77a2cae9 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -2826,6 +2826,22 @@ removes the previously defined macro \c{foo}, but
does \e{not} remove the macro \c{bar}, since the argument
specification does not match exactly.
+
+\S{exitmacro} Exiting Multi-Line Macros: \i\c{%exitmacro}
+
+Multi-line macro expansions can be arbitrarily terminated with
+the \c{%exitmacro} directive.
+
+For example:
+
+\c %macro foo 1-3
+\c ; Do something
+\c %if<condition>
+\c %exitmacro
+\c %endif
+\c ; Do something
+\c %endmacro
+
\H{condasm} \i{Conditional Assembly}\I\c{%if}
Similarly to the C preprocessor, NASM allows sections of a source