How to expand macro arguments for use with conditionals inside the macro definition

0 votes
asked Aug 31, 2018 in Question / help by gorrunyo (120 points)
edited Aug 31, 2018 by gorrunyo

The code below should not produce any output as both A and B are defined as constants.

Do you know how I can do this?


!define A C

!define B C

!definelong X(Y, Z)

!ifndef Y && Z

Y --> Z



X(A, B)


Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.