standard.mac: define __?NASM_HAS_IFDIRECTIVE?__

Define a __?NASM_HAS_IFDIRECTIVE?__ to know when it is safe to use
%ifdirective and other dynamic probing features.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2025-09-05 17:07:54 -07:00
parent f39677d527
commit 4cf4333ba2

View file

@ -272,8 +272,9 @@ STD: nasm
%defalias __PTR__ __?PTR?__
%defalias __PASS__ __?PASS?__
; Backwards compatibility aliases for tokens. The extra level of indirection here
; means %aliases on|off will do the right thing for these as well.
; Backwards compatibility aliases for tokens. The extra level of
; indirection here means %aliases on|off will do the right thing for
; these as well.
%idefine __?infinity?__ %?
%idefine __?nan?__ %?
%idefine __?qnan?__ %?
@ -325,3 +326,6 @@ STD: nasm
%idefalias __ilog2w__ __?ilog2w?__
%idefalias __ilog2f__ __?ilog2f?__
%idefalias __ilog2c__ __?ilog2c?__
; Declare that %ifdirective is supported
%define __?NASM_IFDIRECTIVE?__ 1