0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-09-22 10:43:39 -04:00
Files
nasm/test/directive.asm
H. Peter Anvin 31a160759d Add %ifdirective preprocessor directive
Along with C and other languages, the current trend is to be able to
probe for features rather than relying on version numbers. This is
motivated in part by the intent of bumping the major version number to
3.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-09-04 19:41:12 -07:00

16 lines
252 B
NASM

%macro dir 1
%assign y %isdirective(%1)
%xdefine c %cond(y,YES,NO)
db "Directive ", %str(%1), %cond(y,""," not"), ` valid\r\n`
%endmacro
dir db
dir %iffile
dir iffile
dir [%iffile]
dir [extern]
dir extern
dir %extern
dir org
dir uppercase