[SCM] libav/experimental: avassert: prettify macro

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:16:44 UTC 2013


The following commit has been merged in the experimental branch:
commit f23ceeb84dcac0cf3993a1a8fa4b667a1c3c20df
Author: Måns Rullgård <mans at mansr.com>
Date:   Fri Oct 1 13:55:16 2010 +0000

    avassert: prettify macro
    
    Originally committed as revision 25285 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavutil/avassert.h b/libavutil/avassert.h
index fe307fa..25f24a6 100644
--- a/libavutil/avassert.h
+++ b/libavutil/avassert.h
@@ -33,7 +33,13 @@
 /**
  * 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)
 
 
 /**

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list