Originally committed as revision 25285 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -33,7 +33,13 @@ |
| 33 | 33 |
/** |
| 34 | 34 |
* assert() equivalent, that is always enabled. |
| 35 | 35 |
*/ |
| 36 |
-#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)
|
|
| 36 |
+#define av_assert0(cond) do { \
|
|
| 37 |
+ if (!(cond)) { \
|
|
| 38 |
+ av_log(NULL, AV_LOG_FATAL, "Assertion %s failed at %s:%d\n", \ |
|
| 39 |
+ AV_STRINGIFY(cond), __FILE__, __LINE__); \ |
|
| 40 |
+ abort(); \ |
|
| 41 |
+ } \ |
|
| 42 |
+} while (0) |
|
| 37 | 43 |
|
| 38 | 44 |
|
| 39 | 45 |
/** |