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:
parent
87ba0131aa
commit
a67149efff
@ -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