Author Topic: #IF  (Read 796 times)

Biterider

  • Member
  • **
  • Posts: 222
  • ObjAsm32 - ObjAsm64
    • ObjAsm64
Re: #IF
« Reply #30 on: June 19, 2018, 03:51:42 PM »
Hi Habran
I can not say for sure until I have a working set of files. My best guress is that it will not be needed.
Biterider

habran

  • Member
  • *****
  • Posts: 1174
    • uasm
Re: #IF
« Reply #31 on: June 19, 2018, 04:47:18 PM »
 :t
Cod-Father

johnsa

  • Member
  • ****
  • Posts: 688
    • Uasm
Re: #IF
« Reply #32 on: September 17, 2018, 06:43:56 PM »
Proposing the following fix:

The core of the issue is that user defined macros are not allowed to received undefined symbols as arguments.
So while IFDEF someUndefinedVar  works, passing that down via a macro will break.

Proposed fix is to allow an undefined symbol to propagate down through the user macro IFF the macro name is "defined"
We can either provide a built-in defined macro, which would be overridden by a user including an INC file such as the Windows headers that define their own defined macro.