Use an array of function pointers with an integer index
Problem 1: it's a lot of grunt work and makes the code much less maintainable.Problem 2: you now have the overhead of function calling, which kinda defeats (to a certain point) the purpose
This is actually what I plan to do, but given these two problems, having jump table generated under the hood easily beats function pointers.