quote:
VA_X.dll file version 10.9.2332.2 Atmel built 2019.05.20
AtmelStudio
msenv.dll version 14.0.23107.0
Comctl32.dll version 6.10.7601.18837
Windows 7 6.1 Build 7601 Service Pack 1
4 processors (x86-64, WOW64)
Language info: 1252, 0x409
VA will recognize the following code just fine:
struct MyStuct
{
struct __attribute__ ((packed))
{
unsigned flag1 : 1;
unsigned flag2 : 1;
unsigned flag3 : 1;
unsigned flag4 : 1;
unsigned flag5 : 1;
};
// Additional members to follow
};
VA fails to parse the following:
#define bitfield struct __attribute__ ((packed))
struct MyStuct
{
bitfield
{
unsigned flag1 : 1;
unsigned flag2 : 1;
unsigned flag3 : 1;
unsigned flag4 : 1;
unsigned flag5 : 1;
};
};