NASM - The Netwide Assembler
NASM Forum => Programming with NASM => Topic started by: jmricher on May 25, 2020, 02:16:52 PM
-
Hello everyone,
How can I use __NASM_MAJOR__ and NASM_MINOR__ inside a conditional %if ?
is it possible to write something like this ?
code]
%if __NASM_MAJOR__ >= 2 and __NASM_MINOR__ >= 14
...
%endif
Thank you for you answers,
JM
-
ok I checked it is working, I was getting some error because I was mispelling the __NASM_MAJOR__ and __NASM_MINOR__
-
Beginning identificators with one or more underlines is one of the bad habit in C I hate most.
Underline character was meant by Creator as a replacement of space character and should be used between letters only.
It manifest desperately when it is displayed with proportional font or when it is printed on paper.