The latest 3 commits that need to be incorporated somehow.
Created by: xlab
Hi, please review commits b58b6706, 0aefe3d8 and 37d1391a in the cgogen branch. These are only changes I made to keep things running, so finishing them off will mean a full sync with upstream master of the CC, that'd be a very happy moment for me.
So, the patch regarding TypeSpecifier() *TypeSpecifier allows me to walk enums and get their members, since there is no native support of enums in Type yet.
Then, there is no implemented sizeOf / alignOf / structAlignOf for enums, so I added a few methods to walk enum and get the top type (because it could upgrade from uint32 up to int64). And use its values according to the model. This is very naive and may not work as per C specs, just for a consideration and as a temporary solution.
Both commits above are not for merging!
But the latest one is about a missing case in MustConvert, it gets triggered in cases like:
#define ABC 1000.0f
That seems to be all.