In general, it creates an intermediate typedef that forces the Enum types to be a uint32_t in the generated struct.
This way, the enum definition can be less than 4 B (due to short-enums) but the representation will be CDR compliant. Also the assignation shall be warning-less.
This PR address https://github.com/eProsima/Micro-XRCE-DDS-Gen/issues/67
In general, it creates an intermediate typedef that forces the Enum types to be a
uint32_t
in the generated struct.This way, the enum definition can be less than 4 B (due to short-enums) but the representation will be CDR compliant. Also the assignation shall be warning-less.