Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e6b1fa88 authored by FELŠÖCI Marek's avatar FELŠÖCI Marek
Browse files

Add macro for showing error messages

parent 4c3c708c
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,8 @@ inline static void mpf_backtrace(){} ...@@ -83,6 +83,8 @@ inline static void mpf_backtrace(){}
/*! \brief Displays a warning message and that's all. */ /*! \brief Displays a warning message and that's all. */
#define SETWARN(n,s, ...) {MpfWarning(__LINE__,PACKAGE_NAME,__FILE__,__func__,n,s, ## __VA_ARGS__);} #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. */ /*! \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;} #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. */ /*! \brief Displays an error message and aborts the code. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment