Skip to content

Output enums used in field encodings#27

Open
e3q wants to merge 1 commit intoSystemRDL:mainfrom
e3q:enums
Open

Output enums used in field encodings#27
e3q wants to merge 1 commit intoSystemRDL:mainfrom
e3q:enums

Conversation

@e3q
Copy link
Copy Markdown

@e3q e3q commented Feb 6, 2026

I had this lying around and cleaned up a bit. I see there is another PR in limbo, this takes a bit different approach. Enums are emitted as #defines, because IMHO that's the safe way (C enumerators are signed integers etc.). Some fiddling was needed to get scope prefixes sensible; as you can define an enum with the same type name in different scopes. Also allows a "global" enum if you define it at root or "high enough" in the hierarchy.

@e3q
Copy link
Copy Markdown
Author

e3q commented Apr 2, 2026

Hi, did anyone have a chance to look at this? Should I change something about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant