Skip to content

Generate enum conversion functions with a macro - #396

Merged
mrobinson merged 1 commit into
servo:mainfrom
mrobinson:generate-enum-conversion
Sep 21, 2026
Merged

mrobinson merged 1 commit into
servo:mainfrom
mrobinson:generate-enum-conversion

Conversation

@mrobinson

Copy link
Copy Markdown
Member

Normally I'm not a fan of macros, but in this case this will save
hundreds of lines of code as there are going to be ~5 macro types each
with their own conversion routines.

Normally I'm not a fan of macros, but in this case this will save
hundreds of lines of code as there are going to be ~5 macro types each
with their own conversion routines.

Signed-off-by: Martin Robinson <martin@abandonedwig.info>
@mrobinson
mrobinson enabled auto-merge September 21, 2026 05:40
@mrobinson
mrobinson added this pull request to the merge queue Sep 21, 2026
Merged via the queue into servo:main with commit de22be0 Sep 21, 2026
13 checks passed
@mrobinson
mrobinson deleted the generate-enum-conversion branch September 21, 2026 05:56
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.

2 participants