In Delphi 2009 (or older versions), how do you check the “Align” compile option in the code?
The IFOPT directive seems to work only with pure switches ( {$IFOPT A4} does not compile ).
I couldn’t find an equivalent constant or such defined ( {$IF Align = 4} or such )
You can do this by defining a record with known packing rules and check it using SizeOf. Tested in Delphi 2009: