Skip to content

Enums and bitmasks #76

@PMeira

Description

@PMeira

A few enumerations are used in bitmasks or mixed enum+mask. Currently, CEnum doesn't allow this.

An interim fix was added for Monitors.Mode in #75 (just allow integers without restricting to the enum values), but a more elegant solution would be better. I also noticed a few projects vendor CEnum and modify it, for example https://github.com/JuliaGPU/VulkanCore.jl/pull/17/files

Looking for alternative packages, so far I found https://github.com/jmert/BitFlags.jl
Should we adopt it here?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions