I have a specific set of enumerated options available.
typdef enum {
option1 = 1 << 0,
option2 = 1 << 1,
option3 = 1 << 2,
} availableOptions;
I want to disable them and enable according to user input before executing them.
For example:
// iniatially set to all options
myOption = option1 | option2 | option3;
// after user input
void toggleOption1()
{
}
source
share