py/rna: BPy_reports_to_error() now takes the exception type as an argument and returns -1 as an error value

This commit is contained in:
2011-03-12 15:18:08 +00:00
parent a5e59ede6e
commit 90d42e114c
5 changed files with 12 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ char *BPy_enum_as_string(struct EnumPropertyItem *item);
#define BLANK_PYTHON_TYPE {PyVarObject_HEAD_INIT(NULL, 0) NULL}
/* error reporting */
short BPy_reports_to_error(struct ReportList *reports, const short clear);
short BPy_reports_to_error(struct ReportList *reports, PyObject *exception, const short clear);
short BPy_errors_to_report(struct ReportList *reports);
/* TODO - find a better solution! */