pybind11/ubench
Ralf W. Grosse-Kunstleve 9be8d84b1c [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 18:29:55 -07:00
..
python Snapshot of smart_holder branch @ f99ffd7e03 (Tue Aug 27 01:56:00 2024 +0700) 2024-08-26 12:03:09 -07:00
holder_comparison_extract_sheet_data.py Snapshot of smart_holder branch @ f99ffd7e03 (Tue Aug 27 01:56:00 2024 +0700) 2024-08-26 12:03:09 -07:00
holder_comparison.cpp [smart_holder] Introduce PYBIND11_SMART_HOLDER_DISABLE option. (#5348) 2024-09-01 18:29:55 -07:00
holder_comparison.py Snapshot of smart_holder branch @ f99ffd7e03 (Tue Aug 27 01:56:00 2024 +0700) 2024-08-26 12:03:09 -07:00
number_bucket.h Snapshot of smart_holder branch @ f99ffd7e03 (Tue Aug 27 01:56:00 2024 +0700) 2024-08-26 12:03:09 -07:00