Does MASM support compiler directives?

Just so you know, this post is related to my h2inc post from a few days ago. I looked at the tapi.h file and I noticed that some structures are defined differently for different versions of TAPI. To tell the compiler how to customize a particular structure based on the version you want, you must use a #define.

Can I do something similar for MASM? Is there something like #define that I could use? Otherwise I'll need to make several tapi.inc files with structs for different TAPI versions.
Posted on 2002-03-12 15:22:03 by Lysic
#define stryker 20 == stryker EQU 20

You can also use IFNDEF, if not define or IFDEF, if defined...
Posted on 2002-03-12 15:27:07 by stryker
Do you mean conditional assembling ??




VERSION equ 1

.
.
IF VERSION eq 1
xyz equ 4
ELSE
xyz equ 2000
ENDIF

Posted on 2002-03-12 15:27:10 by marsface
Thanks, all.

masrface, that's exactly what I was after - conditional assembly.
Posted on 2002-03-12 15:51:39 by Lysic