]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134768: Fix definition of `mt_continue_should_break()` (#134769)
authorSam James <sam@gentoo.org>
Fri, 30 May 2025 04:42:19 +0000 (05:42 +0100)
committerGitHub <noreply@github.com>
Fri, 30 May 2025 04:42:19 +0000 (04:42 +0000)
commit2f2bee21118adce653ee5bc4eb31d30327465966
treee4733d5bd25d6bcdcb0a4b64a7f06eef20cbe742
parent5f60d0fcccbf6676f5bc924f05452bd5321446f0
gh-134768: Fix definition of `mt_continue_should_break()` (#134769)

In 121ed71f4e395948d313249b2ad33e1e21581f8a, mt_continue_should_break
was changed to be guarded by `Py_DEBUG`, but it's used in `compress_mt_continue_lock_held`
with just `assert`, so it needs to be available when `NDEBUG` is undefined
too.

`Py_DEBUG` implies `NDEBUG` is undefined, so we can check just that.

Fixes: 121ed71f4e395948d313249b2ad33e1e21581f8a
Modules/_zstd/compressor.c