Can a macro be assigned an enum in a library?

See this example : xXmR9u - Online C++ Compiler & Debugging Tool - Ideone.com

Using Library:: in front is not a problem, that's how it should be done, even if it's less beginner-friendly, it's good practice and avoids problems