]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/avassert.h
Merge remote branch 'qatar/master'
[ffmpeg] / libavutil / avassert.h
index fe307fa8945393a3d5301ae6ea2b09f8c502819b..8dd4878c1191baea9eb355171272027b5220b90e 100644 (file)
 #ifndef AVUTIL_AVASSERT_H
 #define AVUTIL_AVASSERT_H
 
+#include <stdlib.h>
 #include "avutil.h"
 #include "log.h"
 
 /**
  * assert() equivalent, that is always enabled.
  */
-#define av_assert0(cond) do {if(!(cond)) { av_log(NULL, AV_LOG_FATAL, "Assertion %s failed at %s:%d\n", AV_STRINGIFY(cond), __FILE__, __LINE__); abort(); }}while(0)
+#define av_assert0(cond) do {                                           \
+    if (!(cond)) {                                                      \
+        av_log(NULL, AV_LOG_FATAL, "Assertion %s failed at %s:%d\n",    \
+               AV_STRINGIFY(cond), __FILE__, __LINE__);                 \
+        abort();                                                        \
+    }                                                                   \
+} while (0)
 
 
 /**