Skip to content

Make C-like enum's binary compatible with C enums #1646

@kevina

Description

@kevina

Now that we can specify explicit discriminant numbers (see #1393), to make then useful they need to use the same integer size as C does for the given platform.

For most cases making them 32bit will be suffice, but the C standard allows them to be different sizes depending on the possible values they can take.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions