I have an enum:
enum myenum{
typeA,
typeB,
typeC
} myenum_t;
Then, a functions is to be called with an enum parameter:
Unfortunately there isn't a simple way to do it language level (at least with C), you just have to make sure you are using only variables defined via enum.
Although you could enable one of the following compiler warnings together with -Werror:
-Wswitch-Wswitch-default-Wswitch-enumThis makes build fail if one of the enums is missed inside switch.