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:
parent
a6741556d0
commit
9e4a6d08e5
@ -53,4 +53,6 @@
|
||||
})
|
||||
#endif
|
||||
|
||||
#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user