summaryrefslogtreecommitdiff
path: root/libavutil/avassert.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-10-01 13:55:16 +0000
committerMåns Rullgård <mans@mansr.com>2010-10-01 13:55:16 +0000
commitf23ceeb84dcac0cf3993a1a8fa4b667a1c3c20df (patch)
tree97172dbc211ffb0b019209fe428c22086cea295e /libavutil/avassert.h
parentb64b4134d565e22fcdd50132456d8289690aaec8 (diff)
avassert: prettify macro
Originally committed as revision 25285 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/avassert.h')
-rw-r--r--libavutil/avassert.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavutil/avassert.h b/libavutil/avassert.h
index fe307fa894..25f24a6267 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)
/**