|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Compile time helpers. More...
Go to the source code of this file.
Macros | |
| #define | ROC_ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
| Get number of elements in a static array. More... | |
| #define | ROC_CONTAINER_OF(ptr, type, member) (reinterpret_cast<type*>((char*)(ptr)-offsetof(type, member))) |
| Cast a member of a structure out to the containing structure. More... | |
| #define | ROC_STRINGIZE_(s) #s |
| Stringize macro helper. More... | |
| #define | ROC_STRINGIZE(s) ROC_STRINGIZE_(s) |
| Stringize macro. More... | |
Compile time helpers.
Definition in file helpers.h.
| #define ROC_ARRAY_SIZE | ( | a | ) | (sizeof(a) / sizeof((a)[0])) |
| #define ROC_CONTAINER_OF | ( | ptr, | |
| type, | |||
| member | |||
| ) | (reinterpret_cast<type*>((char*)(ptr)-offsetof(type, member))) |
| #define ROC_STRINGIZE | ( | s | ) | ROC_STRINGIZE_(s) |