diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-07 15:06:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 15:06:27 (GMT) |
commit | 4b603f628207b380a8a2f22d7ff5d2dbb0853e2e (patch) | |
tree | 956328b2fdcee2bb7c463515de66d4f06e9bb468 /Python | |
parent | 062460e8fd54e53c9a1a6f175ef49c9d730851b8 (diff) | |
download | cpython-4b603f628207b380a8a2f22d7ff5d2dbb0853e2e.zip cpython-4b603f628207b380a8a2f22d7ff5d2dbb0853e2e.tar.gz cpython-4b603f628207b380a8a2f22d7ff5d2dbb0853e2e.tar.bz2 |
bpo-46670: Remove unused macros in ceval.c (GH-31196)
Remove CHECKEXC() and EXT_POP() macros.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index e6b5d3a..31b41b8 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -40,9 +40,8 @@ #include <stdbool.h> #ifdef Py_DEBUG -/* For debugging the interpreter: */ -#define LLTRACE 1 /* Low-level trace feature */ -#define CHECKEXC 1 /* Double-check exception checking */ + /* For debugging the interpreter: */ +# define LLTRACE 1 /* Low-level trace feature */ #endif #if !defined(Py_BUILD_CORE) @@ -1456,15 +1455,11 @@ eval_frame_handle_pending(PyThreadState *tstate) (void)(BASIC_STACKADJ(-(n))); \ assert(STACK_LEVEL() <= frame->f_code->co_stacksize); \ } while (0) -#define EXT_POP(STACK_POINTER) ((void)(lltrace && \ - prtrace(tstate, (STACK_POINTER)[-1], "ext_pop")), \ - *--(STACK_POINTER)) #else #define PUSH(v) BASIC_PUSH(v) #define POP() BASIC_POP() #define STACK_GROW(n) BASIC_STACKADJ(n) #define STACK_SHRINK(n) BASIC_STACKADJ(-(n)) -#define EXT_POP(STACK_POINTER) (*--(STACK_POINTER)) #endif /* Local variable macros */ |