From 2ad64e165e0deb78211ecb1e59538f2881d8df94 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 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 782fb20d46..a0e32281bc 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."); }