Skip to content

Commit 4b603f6

Browse files
authored
bpo-46670: Remove unused macros in ceval.c (GH-31196)
Remove CHECKEXC() and EXT_POP() macros.
1 parent 062460e commit 4b603f6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Python/ceval.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@
4040
#include <stdbool.h>
4141

4242
#ifdef Py_DEBUG
43-
/* For debugging the interpreter: */
44-
#define LLTRACE 1 /* Low-level trace feature */
45-
#define CHECKEXC 1 /* Double-check exception checking */
43+
/* For debugging the interpreter: */
44+
# define LLTRACE 1 /* Low-level trace feature */
4645
#endif
4746

4847
#if !defined(Py_BUILD_CORE)
@@ -1456,15 +1455,11 @@ eval_frame_handle_pending(PyThreadState *tstate)
14561455
(void)(BASIC_STACKADJ(-(n))); \
14571456
assert(STACK_LEVEL() <= frame->f_code->co_stacksize); \
14581457
} while (0)
1459-
#define EXT_POP(STACK_POINTER) ((void)(lltrace && \
1460-
prtrace(tstate, (STACK_POINTER)[-1], "ext_pop")), \
1461-
*--(STACK_POINTER))
14621458
#else
14631459
#define PUSH(v) BASIC_PUSH(v)
14641460
#define POP() BASIC_POP()
14651461
#define STACK_GROW(n) BASIC_STACKADJ(n)
14661462
#define STACK_SHRINK(n) BASIC_STACKADJ(-(n))
1467-
#define EXT_POP(STACK_POINTER) (*--(STACK_POINTER))
14681463
#endif
14691464

14701465
/* Local variable macros */

0 commit comments

Comments
 (0)