24 #ifndef PXR_BASE_TF_PY_ERROR_H
25 #define PXR_BASE_TF_PY_ERROR_H
35 #include <hboost/python/default_call_policies.hpp>
62 template <
typename Base = hboost::python::default_call_policies>
76 template <
class BaseArgs>
79 operator const BaseArgs &()
const {
return base; }
80 operator BaseArgs &() {
return base; }
96 result = Base::postcall(a, result);
118 #endif // PXR_BASE_TF_PY_ERROR_H
bool precall(argument_package const &a)
ErrorMarkAndArgs< typename Base::argument_package > argument_package
GLboolean GLboolean GLboolean GLboolean a
**But if you need a result
PXR_NAMESPACE_OPEN_SCOPE TF_API bool TfPyConvertTfErrorsToPythonException(TfErrorMark const &m)
ErrorMarkAndArgs(BaseArgs base_)
TfPyRaiseOnError()
Default constructor.
TF_API void TfPyConvertPythonExceptionToTfErrors()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
PyObject * postcall(argument_package const &a, PyObject *result)