Skip to content

[chore/headers-interface-defines] feat: add PYBIND11_NOINLINE_ATTR and PYBIND11_INLINE macros - #6131

Open
henryiii wants to merge 1 commit into
chore/headers-interface-definesfrom
feat/precompile-macro-infra
Open

[chore/headers-interface-defines] feat: add PYBIND11_NOINLINE_ATTR and PYBIND11_INLINE macros#6131
henryiii wants to merge 1 commit into
chore/headers-interface-definesfrom
feat/precompile-macro-infra

Conversation

@henryiii

@henryiii henryiii commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

🤖 AI text below 🤖

Description

Stacked on #6130.

Decompose PYBIND11_NOINLINE into PYBIND11_NOINLINE_ATTR + inline (all three current expansions are reproduced exactly), and add PYBIND11_INLINE: inline by default, empty when PYBIND11_PRECOMPILED is defined. This is the macro groundwork for optional pre-compilation (CLI11 and fmt use the same pattern; see also #2445 and #4001). PYBIND11_INLINE has no uses yet, so this PR is a no-op refactor.

Suggested changelog entry:

  • Placeholder.

Decompose PYBIND11_NOINLINE into the attribute part plus inline, and
add PYBIND11_INLINE, which becomes empty under PYBIND11_PRECOMPILED.
Groundwork for optional pre-compilation; all current expansions are
unchanged and PYBIND11_INLINE is not used yet.

Assisted-by: ClaudeCode:claude-fable-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant