diff options
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/log/log.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libnetdata/log/log.h b/libnetdata/log/log.h index 8b54f28de1..1d32cf2091 100644 --- a/libnetdata/log/log.h +++ b/libnetdata/log/log.h @@ -89,6 +89,7 @@ static inline void debug_dummy(void) {} #define infoerr(args...) error_int("INFO", __FILE__, __FUNCTION__, __LINE__, ##args) #define error(args...) error_int("ERROR", __FILE__, __FUNCTION__, __LINE__, ##args) #define fatal(args...) fatal_int(__FILE__, __FUNCTION__, __LINE__, ##args) +#define fatal_assert(expr) ((expr) ? (void)(0) : fatal_int(__FILE__, __FUNCTION__, __LINE__, "Assertion `%s' failed", #expr)) extern void send_statistics(const char *action, const char *action_result, const char *action_data); extern void debug_int( const char *file, const char *function, const unsigned long line, const char *fmt, ... ) PRINTFLIKE(4, 5); |