Type utils
- group Type macros
Utilities for performing various operations on types.
Defines
-
a_container_of(ptr, type, member)
Get a pointer to a containing struct
- Parameters:
ptr – Pointer to the member
type – The containing type
member – The name of the member
ptrpoints to intype
- Returns:
Pointer to containing instance of
type
-
a_array_size(arr)
Get the number of elements in an array
- Parameters:
arr – The array which elements to count
- Returns:
The number of elements
-
a_container_of(ptr, type, member)