gh-135755: Move SPECIAL_ constants to a private header (GH-135922)

Macros without a `Py`/`_Py` prefix should not be defined in public headers.
This commit is contained in:
Petr Viktorin
2025-06-25 13:03:05 +02:00
committed by GitHub
parent dd59c786cf
commit 1b1ae82fab
5 changed files with 10 additions and 9 deletions

View File

@@ -133,13 +133,6 @@ PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
#define FVS_MASK 0x4
#define FVS_HAVE_SPEC 0x4
/* Special methods used by LOAD_SPECIAL */
#define SPECIAL___ENTER__ 0
#define SPECIAL___EXIT__ 1
#define SPECIAL___AENTER__ 2
#define SPECIAL___AEXIT__ 3
#define SPECIAL_MAX 3
#ifndef Py_LIMITED_API
# define Py_CPYTHON_CEVAL_H
# include "cpython/ceval.h"