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?

@startuml

!define A C

!define B C

!definelong X(Y, Z)

!ifndef Y && Z

Y --> Z

!endif

!enddefinelong

X(A, B)

@enduml

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...