]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118124: Use static_assert() in Py_BUILD_ASSERT() on C11 (#118398)
authorVictor Stinner <vstinner@python.org>
Tue, 30 Apr 2024 20:29:48 +0000 (22:29 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Apr 2024 20:29:48 +0000 (22:29 +0200)
commit587388ff22dc7cfa4b66722daf0d33cd804af9f2
tree1d52a2c1368208c8c8d548ccf183c056135860b5
parent6999d68d2878871493d85dc63599f3d44eada104
gh-118124: Use static_assert() in Py_BUILD_ASSERT() on C11 (#118398)

Use static_assert() in Py_BUILD_ASSERT() and Py_BUILD_ASSERT_EXPR()
on C11 and newer and C++11 and newer.

Add tests to test_cext and test_cppext.
Include/pymacro.h
Lib/test/test_cext/extension.c
Lib/test/test_cppext/extension.cpp
Misc/NEWS.d/next/C API/2024-04-29-17-44-15.gh-issue-118124.czQQ9G.rst [new file with mode: 0644]