diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-07-20 11:08:17 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-08-13 13:19:47 -0300 |
commit | 5f0f0e13e1f714704d96f04050674c3102376409 (patch) | |
tree | 125a8c7c0cde76c78b8084682879748047f693cf /qerror.h | |
parent | f2dd1d69edf0080d7d08dd3e8c7bfc6b488d59e4 (diff) | |
download | qemu-5f0f0e13e1f714704d96f04050674c3102376409.zip qemu-5f0f0e13e1f714704d96f04050674c3102376409.tar.gz qemu-5f0f0e13e1f714704d96f04050674c3102376409.tar.bz2 |
qerror: QError: drop file, linenr, func
They have never been fully used and conflict with future error
improvements.
Also makes qerror_report() a proper function, as there's no point
in having it as a macro anymore.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qerror.h')
-rw-r--r-- | qerror.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -27,20 +27,14 @@ typedef struct QError { QObject_HEAD; QDict *error; Location loc; - int linenr; - const char *file; - const char *func; const QErrorStringTable *entry; } QError; QString *qerror_human(const QError *qerror); -void qerror_report_internal(const char *file, int linenr, const char *func, - const char *fmt, ...) GCC_FMT_ATTR(4, 5); +void qerror_report(const char *fmt, ...) GCC_FMT_ATTR(1, 2); void qerror_report_err(Error *err); void assert_no_error(Error *err); QString *qerror_format(const char *fmt, QDict *error); -#define qerror_report(fmt, ...) \ - qerror_report_internal(__FILE__, __LINE__, __func__, fmt, ## __VA_ARGS__) /* * QError class list |