diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-11-29 05:41:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-11-29 05:41:10 +0300 |
commit | 0b325ba201269b3c8aab6e61c70f15c1758737d8 (patch) | |
tree | 001886d8a4335f333d04c78297a6efa2d7254841 /source/blender/python/generic/py_capi_utils.h | |
parent | 0c7fbc435f4611d6f25a58b17f7f65318bef572d (diff) |
PyAPI: PyC_Err_PrintWithFunc utility function
Move function error printing utility into py_capi_utils.
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.h')
-rw-r--r-- | source/blender/python/generic/py_capi_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/generic/py_capi_utils.h b/source/blender/python/generic/py_capi_utils.h index 327d4e60954..25c88799027 100644 --- a/source/blender/python/generic/py_capi_utils.h +++ b/source/blender/python/generic/py_capi_utils.h @@ -38,6 +38,8 @@ PyObject * PyC_ExceptionBuffer_Simple(void); PyObject * PyC_Object_GetAttrStringArgs(PyObject *o, Py_ssize_t n, ...); PyObject * PyC_FrozenSetFromStrings(const char **strings); PyObject * PyC_Err_Format_Prefix(PyObject *exception_type_prefix, const char *format, ...); +void PyC_Err_PrintWithFunc(PyObject *py_func); + void PyC_FileAndNum(const char **filename, int *lineno); void PyC_FileAndNum_Safe(const char **filename, int *lineno); /* checks python is running */ int PyC_AsArray_FAST( |