Check for an error inside the CAPI, since exceptions cannot cross the C api * boundary, this must be called to make sure en exception was not converted to * a PyErr */
| 103 | * a PyErr |
| 104 | */ |
| 105 | inline void CheckCAPIError() |
| 106 | { |
| 107 | if (PyErr_Occurred()) |
| 108 | { |
| 109 | // Propagate the exception to Python |
| 110 | throw pybind11::error_already_set(); |
| 111 | } |
| 112 | }; |
| 113 | |
| 114 | template<class T> |
| 115 | decltype(auto) CheckCAPIError(T &&arg) |
no outgoing calls
no test coverage detected