#include <cstddef>
#include <cassert>
#include <alloca.h>
Go to the source code of this file.
|
| template<typename T , size_t N> |
| char(& | COUNTOF_Helper (T(&array)[N]))[N] |
| |
◆ __ALIGN_MASK
| #define __ALIGN_MASK |
( |
|
x, |
|
|
|
mask |
|
) |
| (((x) + (mask)) & ~(mask)) |
◆ __attribute
◆ ALIGN
◆ COUNTOF
◆ PiVerify
| #define PiVerify |
( |
|
x | ) |
assert(x) |
◆ RETURN_ZERO_NONGNU_ONLY
| #define RETURN_ZERO_NONGNU_ONLY return 0; |
◆ stackalloc
| #define stackalloc |
( |
|
T, |
|
|
|
n |
|
) |
| reinterpret_cast<T *>(alloca(sizeof(T) * n)) |
◆ COUNTOF_Helper()
template<typename T , size_t N>
| char(& COUNTOF_Helper |
( |
T(&) |
array[N] | ) |
)[N] |