aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorXuehai Pan <XuehaiPan@pku.edu.cn>2025-05-08 23:01:25 +0800
committerGitHub <noreply@github.com>2025-05-08 15:01:25 +0000
commitf0f93ba5fa53ef5724250dd9f791d89abca04fa7 (patch)
tree81f097ae0eaeb34cf5220c73a0c6bb819ff5db75 /Python/pylifecycle.c
parente15bbfafbcc9153fa0b05beb806984e288fdefe4 (diff)
downloadcpython-f0f93ba5fa53ef5724250dd9f791d89abca04fa7.tar.gz
cpython-f0f93ba5fa53ef5724250dd9f791d89abca04fa7.zip
gh-131942: Use the Python-specific `Py_DEBUG` macro rather than `_DEBUG` in Windows-related C code (GH-131944)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index c4c1d9fd9e1..8394245d373 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -3144,7 +3144,7 @@ static inline void _Py_NO_RETURN
fatal_error_exit(int status)
{
if (status < 0) {
-#if defined(MS_WINDOWS) && defined(_DEBUG)
+#if defined(MS_WINDOWS) && defined(Py_DEBUG)
DebugBreak();
#endif
abort();