mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-09 06:50:58 +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
|
#endif
|
||||||
|
|
||||||
|
#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user