27 #ifndef AVUTIL_AVASSERT_H
28 #define AVUTIL_AVASSERT_H
37 #define av_assert0(cond) do { \
39 av_log(NULL, AV_LOG_PANIC, "Assertion %s failed at %s:%d\n", \
40 AV_STRINGIFY(cond), __FILE__, __LINE__); \
50 #if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 0
51 #define av_assert1(cond) av_assert0(cond)
53 #define av_assert1(cond) ((void)0)
60 #if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 1
61 #define av_assert2(cond) av_assert0(cond)
62 #define av_assert2_fpu() av_assert0_fpu()
64 #define av_assert2(cond) ((void)0)
65 #define av_assert2_fpu() ((void)0)
Convenience header that includes libavutil's core.
void av_assert0_fpu(void)
Assert that floating point opperations can be executed.