From b1f9ab78615849d6dd1cddf17e35f41d96da124c Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 12 Jul 2022 10:38:01 -0700 Subject: [PATCH] Undo accidental one-line change under with PR #3913 --- include/pybind11/cast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 782fb20d463..a0e32281bcf 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1625,7 +1625,7 @@ unpacking_collector collect_arguments(Args &&...args) { template template object object_api::operator()(Args &&...args) const { -#if defined(PYBIND11_DETAILED_ERROR_MESSAGES) +#ifndef NDEBUG if (!PyGILState_Check()) { pybind11_fail("pybind11::object_api<>::operator() PyGILState_Check() failure."); }