24 #ifndef PXR_BASE_TF_PY_CALL_H
25 #define PXR_BASE_TF_PY_CALL_H
39 #include <hboost/python/call.hpp>
56 template <
typename Return>
63 template <
typename... Args>
70 template <
typename Return>
71 template <
typename... Args>
77 if (!PyErr_Occurred()) {
79 return hboost::python::call<Return>
80 (_callable.ptr(),
args...);
81 }
catch (hboost::python::error_already_set
const &) {
Return operator()(Args...args)
TfPyCall(TfPyObjWrapper const &c)
TF_API void TfPyConvertPythonExceptionToTfErrors()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
**If you just want to fire and args