27#ifndef AVUTIL_AVASSERT_H
28#define AVUTIL_AVASSERT_H
31#ifdef HAVE_AV_CONFIG_H
40#define av_assert0(cond) do { \
42 av_log(NULL, AV_LOG_PANIC, "Assertion %s failed at %s:%d\n", \
43 AV_STRINGIFY(cond), __FILE__, __LINE__); \
53#if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 0
54#define av_assert1(cond) av_assert0(cond)
56#define av_assert1(cond) ((void)0)
63#if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 1
64#define av_assert2(cond) av_assert0(cond)
65#define av_assert2_fpu() av_assert0_fpu()
67#define av_assert2(cond) ((void)0)
68#define av_assert2_fpu() ((void)0)
void av_assert0_fpu(void)
Assert that floating point operations can be executed.
Utility Preprocessor macros.