Thanks! But the point is that the later functions shouldn't have to check whether the bitrate is 8 or 32 ... they should just be able to access "bar.v.value" or something like that.
Type: Posts; User: mushu
Thanks! But the point is that the later functions shouldn't have to check whether the bitrate is 8 or 32 ... they should just be able to access "bar.v.value" or something like that.
Is this possible?
void definer(int bitrate)
{
if (bitrate = 8) typedef char MY_TYPE;
if (bitrate = 32) typedef signed long MY_TYPE;
}