Hi,
I want to use STRUCT_ALIGN to align the struct member to byte align , the code like this.
typedef struct packA
{
uint8 a;
uint16 b;
int32 c;
} testStruct;
#pragma STRUCT_ALIGN(testStruct, 1);
testStruct A;
I hope the result : sizeof(A)=7, but the result sizeof(A)=8. what's wrong ? If I misunderstand for STRUCT_ALIGN?
Regards,
Ellen