PyAPI: PyC_Err_PrintWithFunc utility function

Move function error printing utility into py_capi_utils.
This commit is contained in:
2017-11-29 13:41:10 +11:00
parent 0c7fbc435f
commit 0b325ba201
3 changed files with 60 additions and 55 deletions

View File

@@ -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(