|
FFmpeg 8.1
|
simple assert() macros that are a bit more flexible than ISO C assert(). More...
#include <stdlib.h>#include "attributes.h"#include "log.h"#include "macros.h"#include "version.h"Go to the source code of this file.
Macros | |
| #define | av_assert0(cond) |
| assert() equivalent, that is always enabled. | |
| #define | av_assert1(cond) |
| assert() equivalent, that does not lie in speed critical code. | |
| #define | av_assert2(cond) |
| assert() equivalent, that does lie in speed critical code. | |
| #define | av_unreachable(msg) |
| Asserts that are used as compiler optimization hints depending upon ASSERT_LEVEL and NBDEBUG. | |
| #define | av_assume(cond) |
simple assert() macros that are a bit more flexible than ISO C assert().
Definition in file avassert.h.
| #define av_assert0 | ( | cond | ) |
assert() equivalent, that is always enabled.
Definition at line 42 of file avassert.h.
Referenced by av_get_detection_bbox(), av_iamf_param_definition_get_subblock(), av_tdrdi_get_display(), av_video_enc_params_block(), init_resampler(), and write_audio_frame().
| #define av_assert1 | ( | cond | ) |
assert() equivalent, that does not lie in speed critical code.
These asserts() thus can be enabled without fearing speed loss.
Definition at line 58 of file avassert.h.
| #define av_assert2 | ( | cond | ) |
assert() equivalent, that does lie in speed critical code.
Definition at line 68 of file avassert.h.
| #define av_unreachable | ( | msg | ) |
Asserts that are used as compiler optimization hints depending upon ASSERT_LEVEL and NBDEBUG.
Undefined behaviour occurs if execution reaches a point marked with av_unreachable() or if a condition used with av_assume() is false.
The condition used with av_assume() should not have side-effects and should be visible to the compiler.
Definition at line 99 of file avassert.h.
| #define av_assume | ( | cond | ) |
Definition at line 106 of file avassert.h.