]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-140126: Fix compile error if --with-assertions is enabled (#140133)
authorNeil Schemenauer <nas-github@arctrix.com>
Tue, 14 Oct 2025 23:34:30 +0000 (16:34 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Oct 2025 23:34:30 +0000 (23:34 +0000)
The `types_world_is_stopped()` function needs to be defined if NDEBUG
is not defined.

Objects/typeobject.c

index 9398bcb29c83e44e846f62c4bd9f74dd6725b243..29233c1959c4d071f64d689b167fd34bc805c87a 100644 (file)
@@ -81,7 +81,7 @@ class object "PyObject *" "&PyBaseObject_Type"
 
 #define END_TYPE_DICT_LOCK() Py_END_CRITICAL_SECTION2()
 
-#ifdef Py_DEBUG
+#ifndef NDEBUG
 // Return true if the world is currently stopped.
 static bool
 types_world_is_stopped(void)