1 2 3 4 5 6 7 8 9 10 11 12
int foo(abc_t d) { switch (d) { case A: return 0; case B: return 1; case C: return 2; } }