gh-140126: Fix compile error if --with-assertions is enabled (#140133)

The `types_world_is_stopped()` function needs to be defined if NDEBUG
is not defined.
This commit is contained in:
Neil Schemenauer 2025-10-14 16:34:30 -07:00 committed by GitHub
parent 2ca3c85054
commit 1e1f435196
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()
#ifdef Py_DEBUG
#ifndef NDEBUG
// Return true if the world is currently stopped.
static bool
types_world_is_stopped(void)