sys: util: Add SIZEOF_FIELD() macro
This macro allows to know the size of a struct member at compile time.
Several parts of the Zephyr code are currently using directly the macro
code.
Also added a unit test.
Signed-off-by:
Adrien Ricciardi <aricciardi@baylibre.com>
Loading
Please sign in to comment