Can a macro be assigned an enum in a library?

That code compiles for me.