Use a macro to make the ID-free switch more compact & use ID indices for better readability. Also typedef the enum so missing types in the switch will report compiler warnings.
Use a macro to make the ID-free switch more compact & use ID indices for better readability. Also typedef the enum so missing types in the switch will report compiler warnings.