Add and use G_SIZEOF_MEMBER() macro

A convenient macro present in the Linux kernel, named FIELD_SIZE() there.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau
2020-01-20 16:41:34 +04:00
parent fda1c651d5
commit fd61a21ecd
6 changed files with 28 additions and 5 deletions

View File

@@ -424,6 +424,7 @@ CLAMP
G_APPROX_VALUE
<SUBSECTION>
G_SIZEOF_MEMBER
G_STRUCT_MEMBER
G_STRUCT_MEMBER_P
G_STRUCT_OFFSET