We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e2b7fe commit c07db4eCopy full SHA for c07db4e
include/pybind11/detail/internals.h
@@ -604,7 +604,7 @@ Payload *atomic_get_or_create_in_state_dict(const char *key) {
604
if (capsule_obj == nullptr) {
605
throw error_already_set();
606
}
607
- if PYBIND11_MAYBE_CONSTEXPR (LeakOnInterpreterShutdown) {
+ if (LeakOnInterpreterShutdown) {
608
if (capsule_obj == new_capsule.ptr()) {
609
// Our capsule was inserted.
610
// Remove the destructor to leak the storage on interpreter shutdown.
0 commit comments