c3c icon indicating copy to clipboard operation
c3c copied to clipboard

Attribute to ensure alignment?

Open lerno opened this issue 2 years ago • 0 comments

A possible @assertalign that works as GCCs warn_if_not_aligned. On non packed structs, this will prevent compilation if padding is inserted in front of the member. On a packed struct, it will prevent compilation if it is not aligned.

lerno avatar Jul 06 '23 21:07 lerno