diff options
author | Guido van Rossum <guido@python.org> | 2023-10-03 17:13:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 17:13:50 (GMT) |
commit | d67edcf0b361c9ee0d29ed719562c58a85304cd0 (patch) | |
tree | 06ce9512bc78d2759f55d3495cf3298b387649ea /Modules/_hashopenssl.c | |
parent | d73501602f863a54c872ce103cd3fa119e38bac9 (diff) | |
download | cpython-d67edcf0b361c9ee0d29ed719562c58a85304cd0.zip cpython-d67edcf0b361c9ee0d29ed719562c58a85304cd0.tar.gz cpython-d67edcf0b361c9ee0d29ed719562c58a85304cd0.tar.bz2 |
gh-109979: Auto-generate the target for DEOPT_IF() (#110193)
In Python/bytecodes.c, you now write
```
DEOPT_IF(condition);
```
The code generator expands this to
```
DEOPT_IF(condition, opcode);
```
where `opcode` is the name of the unspecialized instruction.
This works inside macro expansions too.
**CAVEAT:** The entire `DEOPT_IF(condition)` statement must be on a single line.
If it isn't, the substitution will fail; an error will be printed by the code generator
and the C compiler will report some errors.
Diffstat (limited to 'Modules/_hashopenssl.c')
0 files changed, 0 insertions, 0 deletions