Browse Source

avassert: prettify macro

Originally committed as revision 25285 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Måns Rullgård 14 years ago
parent
commit
f23ceeb84d
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      libavutil/avassert.h

+ 7
- 1
libavutil/avassert.h View File

@@ -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)


/**


Loading…
Cancel
Save