Suppose we have some named enums:
enum MyEnum {
FOO,
BAR = 0x50
};
What I googled for is a script (any language) that scans all
A problem with answer 0 is that the enum binary values do not necessarily start at 0 and are not necessarily contiguous.
When I need this, I usually: