![]() |
SuperTinyKernel™ RTOS 1.06.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Selects a static array element count at compile time based on a mode flag. More...
#include <stk_defs.h>
Static Public Attributes | |
| static constexpr size_t | Value = (((MODE & FLAG) != 0U) ? ONTRUE : ONFALSE) |
Selects a static array element count at compile time based on a mode flag.
| MODE | Bitmask of active kernel modes (e.g., EKernelMode flags). |
| FLAG | The specific mode bit to test. |
| ONTRUE | Array count to use when FLAG is active. |
| ONFALSE | Array count to use when FLAG is inactive (may be 0 on GCC/Clang). |
Definition at line 561 of file stk_defs.h.
|
staticconstexpr |
Definition at line 568 of file stk_defs.h.