mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
Introduce PYBIND11_SMART_HOLDER_PADDING_ON (as the only way to turn on padding).
This commit is contained in:
parent
5566c63ebf
commit
df54a82dab
@ -138,7 +138,8 @@ inline bool is_std_default_delete(const std::type_info &rtti_deleter) {
|
||||
|| rtti_deleter == typeid(std::default_delete<T const>);
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || true // BAKEIN_WIP: Stress test.
|
||||
// Meant to help detecting invalid `reinterpret_cast`s or similar.
|
||||
#ifdef PYBIND11_SMART_HOLDER_PADDING_ON
|
||||
# define PYBIND11_SMART_HOLDER_PADDING(N) int PADDING_##N##_[11]
|
||||
#else
|
||||
# define PYBIND11_SMART_HOLDER_PADDING(N)
|
||||
|
Loading…
Reference in New Issue
Block a user