Skip to content

Support structs with enum fields in c_p_pointer #1823

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

Merged
merged 3 commits into from
May 17, 2023

Conversation

czgdp1807
Copy link
Collaborator

Closes #1818


@ccallable
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I feel that any dataclass which is being used in C code as well should be decorated with ccallable and lpython.py should raise an error in case we try to use a pure Python dataclass with C-APIs. What do you say @certik?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I think so.

@czgdp1807 czgdp1807 marked this pull request as ready for review May 17, 2023 13:25
@certik certik enabled auto-merge May 17, 2023 19:45
@certik
Copy link
Contributor

certik commented May 17, 2023

I resolved the conflicts, I am going to keep the merge commit there.

@certik certik merged commit 04bf030 into lcompilers:main May 17, 2023
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.

c_p_pointer does not support pointers to structs with enum fields
2 participants