That is not the problem, it is perfectly fine to end it with a comma.
More likely that either GOOD POOR or FAIL is defined somewhere else as something else.
enum entries should be using Pascal case and not all caps which is reserved for Macros and constants.
Its likely you never had a generated.h specified when you used reflection. But your solution is not valid and this will cause confusion to people in the future.