Skip to content
Commit bf8b1d67 authored by Adrien Ricciardi's avatar Adrien Ricciardi Committed by Alberto Escolar
Browse files

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: default avatarAdrien Ricciardi <aricciardi@baylibre.com>
parent 34f4a0f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment