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

gh-126211: Exclude preprocessor directives from statements containing escaping calls #126213

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

mpage
Copy link
Contributor

@mpage mpage commented Oct 31, 2024

The cases generator inserts code to save and restore the stack pointer around statements that contain escaping calls. To find the beginning of such statements, we walk backwards from the escaping call until we encounter a token that is treated as a statement terminator. This set of terminators should include preprocessor directives.

…alls

The cases generator inserts code to save and restore the stack pointer around
statements that contain escaping calls. To find the beginning of such statements,
we would walk backwards from the escaping call until we encountered a token that
was treated as a statement terminator. This set of terminators should include
preprocessor directives.
@mpage mpage requested review from colesbury and Yhg1s October 31, 2024 00:58
@mpage mpage marked this pull request as ready for review October 31, 2024 00:58
@mpage mpage merged commit 821759d into python:main Nov 1, 2024
48 checks passed
@mpage mpage deleted the gh-126211-fix-cases-gen branch November 1, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants