Skip to content

Commit

Permalink
pythongh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Sep 21, 2023
1 parent 5b8f024 commit efd60c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Include/pyport.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
# define Py_BUILD_CORE
#endif

#if defined(Py_LIMITED_API) && defined(Py_BUILD_CORE)
# error "Py_LIMITED_API and Py_BUILD_CORE are exclusive macros"
#endif


/**************************************************************************
Symbols and macros to supply platform-independent interfaces to basic
Expand Down

0 comments on commit efd60c0

Please sign in to comment.