struct myFile {
magicnumber :: short;
flags :: InfoFlags; //Is of type 'byte'
}
bitfield InfoFlags :: byte {
local FlipHorizontal :: bool;
local FlipVertical :: bool;
2: [FlipVertical=true];
3: [FlipHorizontal=true];
!4: [error("The 4th bit was not set!")];
5: [warning("The 5th bit was not set but it's ok...!")];
}