Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support enums in .fbs #33

Open
vaind opened this issue Apr 2, 2021 · 1 comment · May be fixed by #41
Open

Support enums in .fbs #33

vaind opened this issue Apr 2, 2021 · 1 comment · May be fixed by #41
Labels
enhancement New feature or request

Comments

@vaind
Copy link
Contributor

vaind commented Apr 2, 2021

Example FBS that should be supported, with appropriate enum generated in c/c++ code:

enum Flags: uint(bit_flags) {
    FlagA = 0,
    FlagB = 1,
}

table Table {
    id: ulong;
    flags: Flags;
}
@vaind vaind added the enhancement New feature or request label Apr 2, 2021
@greenrobot
Copy link
Member

Something to consider (especially for non bit flags): in C++ most people prefer enum classes.

@vaind vaind linked a pull request Aug 27, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants