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

Enum support in C/C++ #41

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Enum support in C/C++ #41

wants to merge 3 commits into from

Conversation

vaind
Copy link
Contributor

@vaind vaind commented Aug 27, 2021

closes #33

@@ -25,87 +25,96 @@ static inline OBX_model* create_obx_model() {

obx_model_entity(model, "Typeful", 1, 8717895732742165505);
obx_model_entity_flags(model, (OBXEntityFlags) (OBXEntityFlags_SHARED_GLOBAL_IDS | OBXEntityFlags_SYNC_ENABLED));
obx_model_property(model, "id", OBXPropertyType_Long, 1, 3390393562759376202);
obx_model_property(model, "id", OBXPropertyType_Long, 1, 2669985732393126063);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already a larger PR to review; could you please keep the existing ID with reasonable effort?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried moving to another .fbs but it doesn't help - still ends up with new IDs because these files are always regenerated. The only option is adding another "directory" to the comparison test (i.e. it wouldn't be in typeful but enums) but you didn't want that previously.

BTW the first commit is just adding the enum to the model. the second commit is the actual changes - maybe ignoring the first commit helps reviewing

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.

Support enums in .fbs
2 participants