1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-08-01 19:38:33 +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
parent 87ba0131aa
commit a67149efff

View File

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