I am trying to use a dispatch table to select a data type to cast something as and cannot figure out the syntax for this.
g_cast_table[] =
{
{'h', short int}
or
{'h', "short int"}
}
outcome: (short int)q
Right now my table is set to have a char name and char* type. This is causing a large number of errors as I try to compile. Is there an actual way to do this or should I rethink my process?