Standard C specifies that a switch can have at least 257 case statements. Standard
C++ recommends that at least 16,384 case statements be supported!
The real value must be implementation dependant.
But if you need 16384 cases, i'm not sure if a switch is still the best solution. Maybe a hash_map of function pointers?