Miam-Player  0.8.0
A nice music player
avassert.h File Reference
#include <stdlib.h>
#include "avutil.h"
#include "log.h"

Go to the source code of this file.

Macros

#define av_assert0(cond)
 
#define av_assert1(cond)   ((void)0)
 
#define av_assert2(cond)   ((void)0)
 
#define av_assert2_fpu()   ((void)0)
 

Functions

void av_assert0_fpu (void)
 

Detailed Description

simple assert() macros that are a bit more flexible than ISO C assert().

Author
Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at

Macro Definition Documentation

#define av_assert0 (   cond)
Value:
do { \
if (!(cond)) { \
av_log(NULL, AV_LOG_PANIC, "Assertion %s failed at %s:%d\n", \
AV_STRINGIFY(cond), __FILE__, __LINE__); \
abort(); \
} \
} while (0)
#define AV_STRINGIFY(s)
Definition: macros.h:36
#define AV_LOG_PANIC
Definition: log.h:163

assert() equivalent, that is always enabled.

#define av_assert1 (   cond)    ((void)0)

assert() equivalent, that does not lie in speed critical code. These asserts() thus can be enabled without fearing speed loss.

#define av_assert2 (   cond)    ((void)0)

assert() equivalent, that does lie in speed critical code.

#define av_assert2_fpu ( )    ((void)0)

Function Documentation

void av_assert0_fpu ( void  )

Assert that floating point opperations can be executed.

This will av_assert0() that the cpu is not in MMX state on X86