diff --git a/lib/utils/mu-result.hh b/lib/utils/mu-result.hh index ea568aad..0d93b172 100644 --- a/lib/utils/mu-result.hh +++ b/lib/utils/mu-result.hh @@ -115,6 +115,14 @@ Err(Error::Code errcode, GError **err, const char* frm, ...) return Err(errcode, std::move(str)); } +#define assert_valid_result(R) do { \ + if(!R) { \ + g_critical("error-result: %s", (R).error().what()); \ + } \ + } \ + while(0) + + }// namespace Mu