diff options
Diffstat (limited to 'qerror.c')
-rw-r--r-- | qerror.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -572,6 +572,14 @@ void qerror_report_err(Error *err) } } +void assert_no_error(Error *err) +{ + if (err) { + qerror_report_err(err); + abort(); + } +} + /** * qobject_to_qerror(): Convert a QObject into a QError */ |