mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
parent
790241bce2
commit
023b3f32c8
@ -1625,7 +1625,7 @@ unpacking_collector<policy> collect_arguments(Args &&...args) {
|
||||
template <typename Derived>
|
||||
template <return_value_policy policy, typename... Args>
|
||||
object object_api<Derived>::operator()(Args &&...args) const {
|
||||
#if defined(PYBIND11_DETAILED_ERROR_MESSAGES)
|
||||
#ifndef NDEBUG
|
||||
if (!PyGILState_Check()) {
|
||||
pybind11_fail("pybind11::object_api<>::operator() PyGILState_Check() failure.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user