From d88660fc1e21f8bad1a7935f2bdca1cc5364d1ce Mon Sep 17 00:00:00 2001 From: Kai Burghardt Date: Sun, 9 Oct 2022 19:24:41 +0000 Subject: [PATCH] =?UTF-8?q?document=20`%imacro`=20=E2=86=92=20`%unimacro`?= =?UTF-8?q?=20(case-insensitive)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no documentation of the `%unimacro` directive. This is particularly confusing when you’re trying to remove a macro that has previously been defined with the `%imacro` directive. --- doc/nasmdoc.src | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index 91b4cf7c..ae81df5b 100644 --- a/doc/nasmdoc.src +++ b/doc/nasmdoc.src @@ -3194,7 +3194,7 @@ Or like this: \c %macro bar 1-5+.nolist a,b,c,d,e,f,g,h -\S{unmacro} Undefining Multi-Line Macros: \i\c{%unmacro} +\S{unmacro} Undefining Multi-Line Macros: \I\c{%unimacro}\i\c{%unmacro} Multi-line macros can be removed with the \c{%unmacro} directive. Unlike the \c{%undef} directive, however, \c{%unmacro} takes an @@ -3218,6 +3218,8 @@ removes the previously defined macro \c{foo}, but does \e{not} remove the macro \c{bar}, since the argument specification does not match exactly. +A case-insensitive macro needs to be removed with the \c{%unimacro} +directive. \H{condasm} \i{Conditional Assembly}\I\c{%if}