]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-142038: Expand guard for types_world_is_stopped() to fix debug builds without...
authorUwe L. Korn <xhochy@users.noreply.github.com>
Wed, 3 Dec 2025 14:24:17 +0000 (15:24 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Dec 2025 14:24:17 +0000 (15:24 +0100)
Objects/typeobject.c

index 4c6ff51493f79907c78b73ba418a3cff0d01c68c..cbe0215359e29d55b6baa71e9e058c3221f12842 100644 (file)
@@ -81,7 +81,7 @@ class object "PyObject *" "&PyBaseObject_Type"
 
 #define END_TYPE_DICT_LOCK() Py_END_CRITICAL_SECTION2()
 
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(Py_DEBUG)
 // Return true if the world is currently stopped.
 static bool
 types_world_is_stopped(void)