Get the alignment of a type
#include <stdalign.h> #define __alignof_is_defined 1 #ifndef __cplusplus #define alignof _Alignof; #endif /* __cplusplus */
The alignof() macro expands to the C11 _Alignof() operator, which returns the alignment requirements of the given type:
_Alignof( type )
where type is any type name. The result is an integer constant of type size_t.
The value of __alignof_is_defined is 1.