mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
preproc: add a %null directive for the masm macro package
Instead of %pragma ignore, use a new %null directive which ignores the rest of the line, without bothering to expand it. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
015ddc1b33
commit
a79a700208
3 changed files with 8 additions and 2 deletions
|
|
@ -89,6 +89,7 @@
|
|||
%include
|
||||
%line
|
||||
%local
|
||||
%null
|
||||
%pop
|
||||
%pragma
|
||||
%push
|
||||
|
|
|
|||
|
|
@ -4649,6 +4649,11 @@ issue_error:
|
|||
case PP_LINE:
|
||||
nasm_panic("`%s' directive not preprocessed early", dname);
|
||||
break;
|
||||
|
||||
case PP_NULL:
|
||||
/* Goes nowhere, does nothing... */
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
done:
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ USE: masm
|
|||
%endmacro
|
||||
|
||||
%imacro ends 0+.nolist
|
||||
%pragma ignore ends %00
|
||||
%null ends %00
|
||||
%endmacro
|
||||
|
||||
%imacro proc 0-*.nolist
|
||||
|
|
@ -65,7 +65,7 @@ USE: masm
|
|||
%endmacro
|
||||
|
||||
%imacro endp 0.nolist
|
||||
%pragma ignore endp %00
|
||||
%null endp %00
|
||||
%undef ret
|
||||
%endmacro
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue