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

fix: resolve anonymous enum #61

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

Vipul-Cariappa
Copy link
Collaborator

Fixes: test10_enum

@Vipul-Cariappa
Copy link
Collaborator Author

ping @aaronj0 @vgvassilev

Copy link
Collaborator

@aaronj0 aaronj0 left a comment

Choose a reason for hiding this comment

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

LGTM!

PyObject* bval;
if (enum_type == "bool") {
bval = (bool)llval ? Py_True : Py_False;
Py_INCREF(bval);
Copy link
Collaborator

Choose a reason for hiding this comment

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

One comment I would have is that this also enables test12_enum_scope on OS X with cling. Maybe there is something there that can also enable this test on other platforms.

@aaronj0 aaronj0 merged commit b1c76d0 into compiler-research:master Sep 24, 2024
15 checks passed
@Vipul-Cariappa Vipul-Cariappa deleted the anonymous-enum branch September 28, 2024 04:16
Vipul-Cariappa added a commit to Vipul-Cariappa/cppyy-compiler-research that referenced this pull request Sep 28, 2024
Vipul-Cariappa added a commit to Vipul-Cariappa/cppyy-compiler-research that referenced this pull request Sep 28, 2024
vgvassilev pushed a commit to compiler-research/cppyy that referenced this pull request Sep 28, 2024
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.

2 participants