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

Implement pre-defining structs/unions #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vaartis
Copy link

@vaartis vaartis commented Dec 6, 2020

When a struct or a union is already defined in a lib with the same
name as the transformer would generate, use that defined structure
instead of generating a new one. One particular usecase for this is
defining structures that use bitfields manually and then using those
instead of the incorrectly generated by crystal_lib.

This is somewhat related to #70, but even without that generating the same struct
if one is already defined makes the file not compile, so using the one already defined
seems like the proper behaviour.

When a struct or a union is already defined in a lib with the same
name as the transformer would generated, use that defined structure
instead of generating a new one. One particular usecase for this is
defining structures that use bitfields manually and then using those
instead of the incorrectly generated by crystal_lib.
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.

1 participant