Implemented macros for enum parsing code