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

0 votes
asked Aug 31 in Question / help by gorrunyo (120 points)
edited Aug 31 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:
To avoid this verification in future, please log in or register.
...