diff --git a/core/embed/trezorhal/common.h b/core/embed/trezorhal/common.h index 6756030dd..3c92580c8 100644 --- a/core/embed/trezorhal/common.h +++ b/core/embed/trezorhal/common.h @@ -53,4 +53,6 @@ }) #endif +#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) + #endif