1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-08 22:40:59 +00:00

feat(code/embed): introduce ARRAY_LENGTH macro

[no changelog]
This commit is contained in:
cepetr 2024-08-27 18:01:59 +02:00 committed by cepetr
parent a6741556d0
commit 9e4a6d08e5

View File

@ -53,4 +53,6 @@
})
#endif
#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
#endif