FFmpeg
Macros
attributes.h File Reference

Go to the source code of this file.

Macros

#define AV_GCC_VERSION_AT_LEAST(x, y)   (__GNUC__ > (x) || __GNUC__ == (x) && __GNUC_MINOR__ >= (y))
 
#define AV_GCC_VERSION_AT_MOST(x, y)   (__GNUC__ < (x) || __GNUC__ == (x) && __GNUC_MINOR__ <= (y))
 
#define av_always_inline   inline
 
#define av_extern_inline   inline
 
#define av_warn_unused_result
 
#define av_noinline
 
#define av_pure
 
#define av_const
 
#define av_cold
 
#define av_flatten
 
#define attribute_deprecated
 
#define AV_NOWARN_DEPRECATED(code)   code
 Disable warnings about deprecated features This is useful for sections of code kept for backward compatibility and scheduled for removal. More...
 
#define av_unused   __attribute__((unused))
 
#define av_used
 Mark a variable as used and prevent the compiler from optimizing it away. More...
 
#define av_alias
 
#define av_uninit(x)   x=x
 
#define av_builtin_constant_p   __builtin_constant_p
 
#define av_printf_format(fmtpos, attrpos)   __attribute__((__format__(__printf__, fmtpos, attrpos)))
 
#define av_noreturn
 

Detailed Description

Macro definitions for various function/variable attributes

Definition in file attributes.h.

Macro Definition Documentation

◆ AV_GCC_VERSION_AT_LEAST

#define AV_GCC_VERSION_AT_LEAST (   x,
 
)    (__GNUC__ > (x) || __GNUC__ == (x) && __GNUC_MINOR__ >= (y))

Definition at line 30 of file attributes.h.

◆ AV_GCC_VERSION_AT_MOST

#define AV_GCC_VERSION_AT_MOST (   x,
 
)    (__GNUC__ < (x) || __GNUC__ == (x) && __GNUC_MINOR__ <= (y))

Definition at line 31 of file attributes.h.

◆ av_always_inline

#define av_always_inline   inline

Definition at line 43 of file attributes.h.

◆ av_extern_inline

#define av_extern_inline   inline

Definition at line 51 of file attributes.h.

◆ av_warn_unused_result

#define av_warn_unused_result

Definition at line 58 of file attributes.h.

◆ av_noinline

#define av_noinline

Definition at line 66 of file attributes.h.

◆ av_pure

#define av_pure

Definition at line 72 of file attributes.h.

◆ av_const

#define av_const

Definition at line 78 of file attributes.h.

◆ av_cold

#define av_cold

Definition at line 84 of file attributes.h.

◆ av_flatten

#define av_flatten

Definition at line 90 of file attributes.h.

◆ attribute_deprecated

#define attribute_deprecated

Definition at line 98 of file attributes.h.

◆ AV_NOWARN_DEPRECATED

#define AV_NOWARN_DEPRECATED (   code)    code

Disable warnings about deprecated features This is useful for sections of code kept for backward compatibility and scheduled for removal.

Definition at line 120 of file attributes.h.

◆ av_unused

#define av_unused   __attribute__((unused))

Definition at line 125 of file attributes.h.

◆ av_used

#define av_used

Mark a variable as used and prevent the compiler from optimizing it away.

This is useful for variables accessed only from inline assembler without the compiler being aware.

Definition at line 138 of file attributes.h.

◆ av_alias

Definition at line 144 of file attributes.h.

◆ av_uninit

#define av_uninit (   x)    x=x

Definition at line 148 of file attributes.h.

◆ av_builtin_constant_p

#define av_builtin_constant_p   __builtin_constant_p

Definition at line 154 of file attributes.h.

◆ av_printf_format

#define av_printf_format (   fmtpos,
  attrpos 
)    __attribute__((__format__(__printf__, fmtpos, attrpos)))

Definition at line 155 of file attributes.h.

◆ av_noreturn

#define av_noreturn

Definition at line 164 of file attributes.h.