gh-99069: Consolidate checks for static_assert by jmroot · Pull Request #94766 · python/cpython · GitHub

github.com

Tin mới

jmroot:static_assert

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Build Python with C11 #91731

static_assert undefined (with C11 compiler) on macOS <= 10.10 #99069

View reviewed changes

: Consolidate checks for static_assert

Workaround for MSVC

Indicate blank lines are part of the comment

Restrict static_assert define to gcc/clang C11+

View reviewed changes

Add more explanation of __STDC_VERSION__ check

View reviewed changes

Update Include/pymacro.h

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Update Include/pymacro.h

📜🤖 Added by blurb_it.

C2x compatibility for static_assert

needs backport to 3.11

needs backport to 3.11

: Consolidate checks for static_assert (

: Consolidate checks for static_assert (

: Consolidate checks for static_assert (

: Consolidate checks for static_assert (