floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
6.53k stars 467 forks source link

[odin bindings] Exclude 'NUM' enum values #1029

Closed jakubtomsu closed 2 months ago

jakubtomsu commented 2 months ago

There is no reason to have a NUM field at the end of an enum in Odin. Because unlike in C, Odin supports len(My_Enum). And the additional enum field also interferes with things like enumerated arrays and bit_sets.

floooh commented 2 months ago

Thanks! I'll try looking at your other PRs later today.

jakubtomsu commented 2 months ago

Thank you! The other PRs I've submitted were mostly things I ran into while working on my game. But I never got around to submitting them upstream, so I did that now all at once :)