Skip to content

Conversation

@Balint-R
Copy link
Collaborator

I was looking into how CallMacros take arguments while working on inline functions. I was slightly confused by their logic for applying default arguments, so I wrote a testcase to make sure it actually works (it does).

Also added visit_Expression to compiler.py. ast.Expression objects are only generated by functions like ast.parse(code, mode="eval"), but supporting compiling that never hurts.

@Balint-R Balint-R force-pushed the macro-default-arg branch 3 times, most recently from 0e75502 to fe27f7f Compare August 1, 2025 18:17
Copy link
Collaborator

@jamesthejellyfish jamesthejellyfish left a comment

Choose a reason for hiding this comment

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

LGTM!

@Balint-R Balint-R merged commit 03ddce7 into Huawei-CPLLab:main Aug 14, 2025
2 checks passed
@Balint-R Balint-R deleted the macro-default-arg branch August 15, 2025 20:47
@Balint-R Balint-R added small Not much effort tests Related to tests labels Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small Not much effort tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants