dracflamloc wrote:I meant in response to #PB_Compiler_EnumerationValue
What I meant was that you don't have to actually save the last enumeration
count to a dedicated constant as #PB_Compiler_EnumerationValue already
does exactly that. Hence "#BlahCount" is obsolete.
I'm aware of the fact this may not help with your actual problem though.
Good programmers don't comment their code. It was hard to write, should be hard to read.
The problem with the "PB_Compiler_EnumerationValue is it store only the last enumeration value, which means than:
1) if you have several enumeration, it will work only for the last one
2) if your enumeration isn't sequencial it will store the last value, and not the count.
The suggestion with the #Count contant at the end of the enumeration looks good to me.