pybind11/.github
Ralf W. Grosse-Kunstleve bd8985aa0f
[smart_holder] Introduce PYBIND11_SMART_HOLDER_DISABLE option. (#5348)
* Step 1: Establish new `PYBIND11_SMART_HOLDER_ENABLED` macro, but only under include/pybind11/

At the stage `PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT` and `PYBIND11_SMART_HOLDER_ENABLED` are still equivalent.

* Systematically replace all `PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT` with `PYBIND11_SMART_HOLDER_ENABLED` under tests/ and ubench/

As at the previous stage, `PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT` and `PYBIND11_SMART_HOLDER_ENABLED` are still equivalent.

* Introduce `PYBIND11_SMART_HOLDER_DISABLE` option.

* `#ifdef` out entire `wrap()` function to avoid `unused-parameter` warning-as-error under macos-13

```
/Users/runner/work/pybind11/pybind11/tests/test_class_sh_trampoline_basic.cpp:67:23: error: unused parameter 'm' [-Werror,-Wunused-parameter]
void wrap(py::module_ m, const char *py_class_name) {
                      ^
/Users/runner/work/pybind11/pybind11/tests/test_class_sh_trampoline_basic.cpp:67:38: error: unused parameter 'py_class_name' [-Werror,-Wunused-parameter]
void wrap(py::module_ m, const char *py_class_name) {
                                     ^
2 errors generated.
```
2024-09-01 14:34:36 -07:00
..
ISSUE_TEMPLATE fix(.github): fix bug-report issue template (#4363) 2022-11-25 15:15:54 -08:00
matchers style: pylint (#3720) 2022-02-15 17:48:33 -05:00
workflows [smart_holder] Introduce PYBIND11_SMART_HOLDER_DISABLE option. (#5348) 2024-09-01 14:34:36 -07:00
CODEOWNERS chore: add nox support (#3101) 2021-07-12 17:45:40 -04:00
CONTRIBUTING.md feat: require CMake 3.15+ (#5304) 2024-08-14 18:21:04 -04:00
dependabot.yml ci: ignore actions/checkout until v5 comes out 2024-02-13 18:36:39 -05:00
labeler_merged.yml chore(deps): bump the actions group with 1 update (#5082) 2024-05-10 16:34:41 -04:00
labeler.yml chore(deps): bump the actions group with 1 update (#5082) 2024-05-10 16:34:41 -04:00
pull_request_template.md docs: mention title conventions in PR template (#3313) 2021-09-29 06:18:58 -04:00