Assembler macros vs C macros



In our PB5.0 workspace file "HWVERSION" is the variable
(Platform->Settings, Environment) that determines our platform hardware
version. It is set in the workspace file (.PXML) and is picked up by
our sources.cmn file who transformes it in a C macro like this:

!IF "$(HWVERSION )" == "1"
CDEFINES= $(CDEFINES) -DHWVERSION1
!ELSE
CDEFINES= $(CDEFINES) -DHWVERSION2
!ENDIF

Question: is it possible to pick up this C macro in an assembler
include file (.INC)?

This would give us the advantage of using only one define for assembler
AND C code.

Thank you,
Wesley

.



Relevant Pages

  • Re: Assembler macros vs C macros
    ... It is set in the workspace file and is picked up by ... CDEFINES= $-DHWVERSION1 ... is it possible to pick up this C macro in an assembler ... This would give us the advantage of using only one define for assembler ...
    (microsoft.public.windowsce.platbuilder)
  • Re: save all files
    ... prompt. ... The workspace file that is saved will open all fifteen files at once ... before choosing this option to save the layout configuration. ... Anyone knows a add in or a macro that could do this? ...
    (microsoft.public.excel.worksheet.functions)