gh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE (#109690)

Fix make check-c-globals: complete USE_LIMITED_C_API list of the
c-analyzer.
This commit is contained in:
Victor Stinner 2023-09-22 01:21:07 +02:00 committed by GitHub
parent 26e06ad617
commit 3f5c5649cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -48,6 +48,10 @@
# define Py_BUILD_CORE
#endif
#if defined(Py_LIMITED_API) && defined(Py_BUILD_CORE)
# error "Py_LIMITED_API is not compatible with Py_BUILD_CORE"
#endif
/**************************************************************************
Symbols and macros to supply platform-independent interfaces to basic