gh-142038: Expand guard for types_world_is_stopped() to fix debug builds without assertions (#142039)

This commit is contained in:
Uwe L. Korn 2025-12-03 15:24:17 +01:00 committed by GitHub
parent 7e5fcae09b
commit f6f456f950
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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)