|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Helper macros. More...
#include "roc_core/stddefs.h"Go to the source code of this file.
Macros | |
| #define | ROC_MIN(a, b) |
| Select minum value. | |
| #define | ROC_MAX(a, b) |
| Select minum value. | |
| #define | ROC_ARRAY_SIZE(a) |
| Get number of elements in a static array. | |
| #define | ROC_MIN_OF(type) |
| Get minimum value of signed or unsigned integer type. | |
| #define | ROC_MAX_OF(type) |
| Get maximum value of signed or unsigned integer type. | |
| #define | ROC_CONTAINER_OF(ptr, type, member) |
| Cast a member of a structure out to the containing structure. | |
| #define | ROC_STRINGIZE_(s) |
| Stringize macro helper. | |
| #define | ROC_STRINGIZE(s) |
| Stringize macro. | |
Helper macros.
Definition in file macro_helpers.h.
| #define ROC_ARRAY_SIZE | ( | a | ) |
Get number of elements in a static array.
Definition at line 24 of file macro_helpers.h.
| #define ROC_CONTAINER_OF | ( | ptr, | |
| type, | |||
| member ) |
Cast a member of a structure out to the containing structure.
Definition at line 37 of file macro_helpers.h.
| #define ROC_MAX | ( | a, | |
| b ) |
| #define ROC_MAX_OF | ( | type | ) |
Get maximum value of signed or unsigned integer type.
Definition at line 32 of file macro_helpers.h.
| #define ROC_MIN | ( | a, | |
| b ) |
| #define ROC_MIN_OF | ( | type | ) |
Get minimum value of signed or unsigned integer type.
Definition at line 27 of file macro_helpers.h.
| #define ROC_STRINGIZE | ( | s | ) |
| #define ROC_STRINGIZE_ | ( | s | ) |