Skip to content
Snippets Groups Projects
Commit f23ceeb8 authored by Måns Rullgård's avatar Måns Rullgård
Browse files

avassert: prettify macro

Originally committed as revision 25285 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b64b4134
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,13 @@ ...@@ -33,7 +33,13 @@
/** /**
* assert() equivalent, that is always enabled. * 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)
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment