@@ -1424,7 +1424,7 @@ class generic_type : public object {
14241424 tinfo->simple_ancestors = true ;
14251425 tinfo->default_holder = rec.default_holder ;
14261426 tinfo->module_local = rec.module_local ;
1427- #ifdef PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT
1427+ #ifdef PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT
14281428 tinfo->holder_enum_v = rec.holder_enum_v ;
14291429#endif
14301430
@@ -1631,7 +1631,7 @@ PYBIND11_NAMESPACE_END(detail)
16311631template <typename T, typename D, typename SFINAE = void >
16321632struct property_cpp_function : detail::property_cpp_function_classic<T, D> {};
16331633
1634- #ifdef PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT
1634+ #ifdef PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT
16351635
16361636PYBIND11_NAMESPACE_BEGIN (detail)
16371637
@@ -1810,10 +1810,10 @@ struct property_cpp_function<
18101810 detail::both_t_and_d_use_type_caster_base<T, typename D::element_type>>::value>>
18111811 : detail::property_cpp_function_sh_unique_ptr_member<T, D> {};
18121812
1813- #endif // PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT
1813+ #endif // PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT
18141814
18151815#if defined(PYBIND11_USE_SMART_HOLDER_AS_DEFAULT) \
1816- && defined (PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT )
1816+ && defined (PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT )
18171817// NOTE: THIS IS MEANT FOR STRESS-TESTING ONLY!
18181818// As of PR #5257, for production use, there is no longer a strong reason to make
18191819// smart_holder the default holder:
@@ -1881,7 +1881,7 @@ class class_ : public detail::generic_type {
18811881 // A more fitting name would be uses_unique_ptr_holder.
18821882 record.default_holder = detail::is_instantiation<std::unique_ptr, holder_type>::value;
18831883
1884- #ifdef PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT
1884+ #ifdef PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT
18851885 if (detail::is_instantiation<std::unique_ptr, holder_type>::value) {
18861886 record.holder_enum_v = detail::holder_enum_t ::std_unique_ptr;
18871887 } else if (detail::is_instantiation<std::shared_ptr, holder_type>::value) {
@@ -2226,7 +2226,7 @@ class class_ : public detail::generic_type {
22262226 init_holder (inst, v_h, (const holder_type *) holder_ptr, v_h.value_ptr <type>());
22272227 }
22282228
2229- #ifdef PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT
2229+ #ifdef PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT
22302230
22312231 template <typename WrappedType>
22322232 static bool try_initialization_using_shared_from_this (holder_type *, WrappedType *, ...) {
@@ -2288,7 +2288,7 @@ class class_ : public detail::generic_type {
22882288 v_h.set_holder_constructed ();
22892289 }
22902290
2291- #endif // PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT
2291+ #endif // PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT
22922292
22932293 // / Deallocates an instance; via holder, if constructed; otherwise via operator delete.
22942294 static void dealloc (detail::value_and_holder &v_h) {
@@ -2330,7 +2330,7 @@ class class_ : public detail::generic_type {
23302330 }
23312331};
23322332
2333- #ifdef PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT
2333+ #ifdef PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT
23342334
23352335// Supports easier switching between py::class_<T> and py::class_<T, py::smart_holder>:
23362336// users can simply replace the `_` in `class_` with `h` or vice versa.
0 commit comments