mirror of
https://github.com/python/cpython
synced 2026-09-26 16:21:04 +03:00
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.
3 lines
164 B
ReStructuredText
3 lines
164 B
ReStructuredText
Fix :c:macro:`Py_BUILD_ASSERT` and :c:macro:`Py_BUILD_ASSERT_EXPR` for
|
|
non-constant expressions: use ``static_assert()`` on C11 and newer.
|
|
Patch by Victor Stinner.
|