[Python-checkins] gh-101903: Remove obsolete undefs for previously removed macros Py_EnterRecursiveCall and Py_LeaveRecursiveCall (#101923)

iritkatriel webhook-mailer at python.org
Tue Feb 21 06:58:56 EST 2023


https://github.com/python/cpython/commit/7346a381be1bc5911924fcf298408e6909f3949f
commit: 7346a381be1bc5911924fcf298408e6909f3949f
branch: main
author: Owain Davies <116417456+OTheDev at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2023-02-21T11:58:47Z
summary:

gh-101903: Remove obsolete undefs for previously removed macros Py_EnterRecursiveCall and Py_LeaveRecursiveCall (#101923)

files:
M Python/ceval.c

diff --git a/Python/ceval.c b/Python/ceval.c
index b85231a1df8a..001bdb15c0f7 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3068,15 +3068,11 @@ maybe_dtrace_line(_PyInterpreterFrame *frame,
 /* Implement Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() as functions
    for the limited API. */
 
-#undef Py_EnterRecursiveCall
-
 int Py_EnterRecursiveCall(const char *where)
 {
     return _Py_EnterRecursiveCall(where);
 }
 
-#undef Py_LeaveRecursiveCall
-
 void Py_LeaveRecursiveCall(void)
 {
     _Py_LeaveRecursiveCall();



More information about the Python-checkins mailing list