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

Somehow it doesn’t work. I downloaded your project and when packaging I get this: