Author Topic: How to use __NASM_MAJOR__ and __NASM_MINOR__  (Read 5321 times)

Offline jmricher

  • Jr. Member
  • *
  • Posts: 2
How to use __NASM_MAJOR__ and __NASM_MINOR__
« on: May 25, 2020, 02:16:52 PM »
Code: [Select]
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
« Last Edit: May 25, 2020, 02:19:03 PM by jmricher »

Offline jmricher

  • Jr. Member
  • *
  • Posts: 2
Re: How to use __NASM_MAJOR__ and __NASM_MINOR__
« Reply #1 on: May 25, 2020, 02:31:41 PM »
ok I checked it is working, I was getting some error because I was mispelling the __NASM_MAJOR__ and __NASM_MINOR__

Offline vitsoft

  • Jr. Member
  • *
  • Posts: 17
  • Country: cz
    • About me
Re: How to use __NASM_MAJOR__ and __NASM_MINOR__
« Reply #2 on: May 27, 2020, 12:27:55 PM »
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.