Enum Size
Opened this issue · 0 comments
rweijnen commented
In Delphi an enum is by default 2 bytes in size whereas in C the default is 4 bytes. This could lead to errors when passing an enum to a function or an alignment error when using an enum in a record/struct.
I would suggest to add {$MINENUMSIZE 4}
See also http://docwiki.embarcadero.com/RADStudio/Rio/en/Minimum_enumeration_size_(Delphi)