Skip to content

Commit 1e1f435

Browse files
authored
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.
1 parent 2ca3c85 commit 1e1f435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class object "PyObject *" "&PyBaseObject_Type"
8181

8282
#define END_TYPE_DICT_LOCK() Py_END_CRITICAL_SECTION2()
8383

84-
#ifdef Py_DEBUG
84+
#ifndef NDEBUG
8585
// Return true if the world is currently stopped.
8686
static bool
8787
types_world_is_stopped(void)

0 commit comments

Comments
 (0)