[FFmpeg-cvslog] r25285 - trunk/libavutil/avassert.h

mru subversion
Fri Oct 1 15:55:17 CEST 2010


Author: mru
Date: Fri Oct  1 15:55:16 2010
New Revision: 25285

Log:
avassert: prettify macro

Modified:
   trunk/libavutil/avassert.h

Modified: trunk/libavutil/avassert.h
==============================================================================
--- trunk/libavutil/avassert.h	Fri Oct  1 15:55:13 2010	(r25284)
+++ trunk/libavutil/avassert.h	Fri Oct  1 15:55:16 2010	(r25285)
@@ -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)
 
 
 /**



More information about the ffmpeg-cvslog mailing list