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 790241b commit 023b3f3Copy full SHA for 023b3f3
include/pybind11/cast.h
@@ -1625,7 +1625,7 @@ unpacking_collector<policy> collect_arguments(Args &&...args) {
1625
template <typename Derived>
1626
template <return_value_policy policy, typename... Args>
1627
object object_api<Derived>::operator()(Args &&...args) const {
1628
-#if defined(PYBIND11_DETAILED_ERROR_MESSAGES)
+#ifndef NDEBUG
1629
if (!PyGILState_Check()) {
1630
pybind11_fail("pybind11::object_api<>::operator() PyGILState_Check() failure.");
1631
}
0 commit comments