chiark / gitweb /
macro: add _unlikely_() to assert_return()
[elogind.git] / src / shared / macro.h
index 37cdff1cb3065456aad3183359183b7edae58adb..c22de91705fb51b26a74b3075f04d9710969bf75 100644 (file)
@@ -150,7 +150,7 @@ static inline size_t ALIGN_TO(size_t l, size_t ali) {
 
 #define assert_return(expr, r)                    \
         do {                                      \
-                if (!(expr))                      \
+                if (_unlikely_(!(expr)))          \
                         return (r);               \
         } while (false)