Hi, i want to replace a
#define INTERVAL_MASK(b) (1 << (b))
with a inline function.
int INTERVAL_MASK(int b)
{
return (1 << b);
}
But i have a switch case, which uses the preprocessor directive in case statements. How to go about converting this? Replacing the switch with if is the only option?
Thanks, gokul.