How to make a reverse "switch on enum" macro?

Afaik functions can’t have multiple input execution pins though?