gh-128629: Add _Py_PACK_VERSION for CPython's own definitions (GH-134… · python/cpython@0d499c7 · GitHub
Skip to content

Commit 0d499c7

Browse files
authored
gh-128629: Add _Py_PACK_VERSION for CPython's own definitions (GH-134247)
Add _Py_PACK_VERSION for CPython's own definitions Py_PACK_VERSION was added to limited API in 3.14, so if Py_LIMITED_API is lower, the macro can't be used. Add a private version that can be used in CPython headers for checks like `Py_LIMITED_API+0 >= _Py_PACK_VERSION(3, 14)`.
1 parent 469a564 commit 0d499c7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Include/pymacro.h

Lines changed: 3 additions & 2 deletions

Python/modsupport.c

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)