mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
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>
15 lines
252 B
NASM
15 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
|