Skip to content

Commit 023b3f3

Browse files
authored
Undo accidental one-line change under PR #3913 (#4060)
1 parent 790241b commit 023b3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/cast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ unpacking_collector<policy> collect_arguments(Args &&...args) {
16251625
template <typename Derived>
16261626
template <return_value_policy policy, typename... Args>
16271627
object object_api<Derived>::operator()(Args &&...args) const {
1628-
#if defined(PYBIND11_DETAILED_ERROR_MESSAGES)
1628+
#ifndef NDEBUG
16291629
if (!PyGILState_Check()) {
16301630
pybind11_fail("pybind11::object_api<>::operator() PyGILState_Check() failure.");
16311631
}

0 commit comments

Comments
 (0)