From 29030b54c98b0aee65fbc10ebf7ba36bed98c02c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Aug 2013 18:02:44 +0200 Subject: util/Error: new error passing library Replaces GLib's GError. --- src/system/FatalError.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/system/FatalError.hxx') diff --git a/src/system/FatalError.hxx b/src/system/FatalError.hxx index 3918e5fc1..be67aabbd 100644 --- a/src/system/FatalError.hxx +++ b/src/system/FatalError.hxx @@ -20,9 +20,12 @@ #ifndef MPD_FATAL_ERROR_HXX #define MPD_FATAL_ERROR_HXX +#include "check.h" #include "gerror.h" #include "gcc.h" +class Error; + /** * Log the specified message and abort the process. */ @@ -34,6 +37,10 @@ gcc_noreturn void FormatFatalError(const char *fmt, ...); +gcc_noreturn +void +FatalError(const Error &error); + gcc_noreturn void FatalError(GError *error); -- cgit v1.2.3