|
FFmpeg 8.1
|
Function attributes applicable to memory handling functions. More...
Macros | |
| #define | av_malloc_attrib __attribute__((__malloc__)) |
| Function attribute denoting a malloc-like function. | |
| #define | av_alloc_size(...) |
| Function attribute used on a function that allocates memory, whose size is given by the specified parameter(s). | |
Function attributes applicable to memory handling functions.
These function attributes can help compilers emit more useful warnings, or generate better code.
| #define av_malloc_attrib __attribute__((__malloc__)) |
Function attribute denoting a malloc-like function.
Definition at line 69 of file mem.h.
Referenced by av_calloc(), av_malloc(), av_mallocz(), av_strdup(), and av_strndup().
| #define av_alloc_size | ( | ... | ) |
Function attribute used on a function that allocates memory, whose size is given by the specified parameter(s).
| ... | One or two parameter indexes, separated by a comma |
Definition at line 90 of file mem.h.
Referenced by av_calloc(), av_realloc(), and av_realloc_array().