GNU Info

Info Node: (nasm.info)Section 4.7.4

(nasm.info)Section 4.7.4


Next: Section 4.7.5 Prev: Section 4.7.3 Up: Section 4.7
Enter node , (file) or (file)node

4.7.4. `%repl': Renaming a Context
----------------------------------

   If you need to change the name of the top context on the stack (in
order, for example, to have it respond differently to `%ifctx'), you can
execute a `%pop' followed by a `%push'; but this will have the side
effect of destroying all context-local labels and macros associated
with the context that was just popped.

   NASM provides the directive `%repl', which _replaces_ a context with
a different name, without touching the associated macros and labels.
So you could replace the destructive code

     %pop
     %push   newname

   with the non-destructive version `%repl newname'.


automatically generated by info2www version 1.2.2.9