From e6b1fa887ba1dc9913b3ed4cfc6bb01db35d7f9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?FEL=C5=A0=C3=96CI=20Marek?= <marek.felsoci@inria.fr>
Date: Mon, 6 Nov 2023 02:28:16 +0100
Subject: [PATCH] Add macro for showing error messages

---
 include/util.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/util.h b/include/util.h
index 553f8d2..590ecce 100644
--- a/include/util.h
+++ b/include/util.h
@@ -83,6 +83,8 @@ inline static void mpf_backtrace(){}
 
 /*! \brief Displays a warning message and that's all. */
 #define SETWARN(n,s, ...)   {MpfWarning(__LINE__,PACKAGE_NAME,__FILE__,__func__,n,s, ## __VA_ARGS__);}
+/*! \brief Displays an error message. */
+#define SHWERRM(n,s, ...)   {MpfError(__LINE__,PACKAGE_NAME,__FILE__,__func__,n,s, ## __VA_ARGS__);}
 /*! \brief Displays an error message and quits the current routine. */
 #define SETERRQ(n,s, ...)   {int _ierr = MpfError(__LINE__,PACKAGE_NAME,__FILE__,__func__,n,s, ## __VA_ARGS__); debug_break(); return _ierr;}
 /*! \brief Displays an error message and aborts the code. */
-- 
GitLab