summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-24 16:19:03 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-24 16:19:03 -0700
commit59c2e54f25464a99b18a4ffaebe53b2275019547 (patch)
tree308b1961057de7c8c4e2e7f8e2c59703c20e1df0 /doc
parentb34fce7111cf32cabc4faf4ebd964bd4490626bd (diff)
downloadnasm-59c2e54f25464a99b18a4ffaebe53b2275019547.tar.gz
nasm-59c2e54f25464a99b18a4ffaebe53b2275019547.tar.bz2
nasm-59c2e54f25464a99b18a4ffaebe53b2275019547.zip
doc: document anonymous %push
The anonymous %push was never documented, document it now. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/nasmdoc.src10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index 3ca0f14..5531ff9 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -3129,14 +3129,16 @@ define labels that are local to a particular context on the stack.
contexts}\I{removing contexts}Creating and Removing Contexts
The \c{%push} directive is used to create a new context and place it
-on the top of the context stack. \c{%push} requires one argument,
+on the top of the context stack. \c{%push} takes an optional argument,
which is the name of the context. For example:
\c %push foobar
-This pushes a new context called \c{foobar} on the stack. You can
-have several contexts on the stack with the same name: they can
-still be distinguished.
+This pushes a new context called \c{foobar} on the stack. You can have
+several contexts on the stack with the same name: they can still be
+distinguished. If no name is given, the context is unnamed (this is
+normally used when both the \c{%push} and the \c{%pop} are inside a
+single macro definition.)
The directive \c{%pop}, requiring no arguments, removes the top
context from the context stack and destroys it, along with any