Hello,
Could you provide a complete snippet of code that shows the issue ?
We tried the following example, that seems ok :
@startuml
!define setParticipant(a,b) participant a as b
setParticipant(P1, P1)
setParticipant(P2, P2)
@enduml
I guess that your non-working example is different.
Thanks!