isOn method

bool isOn(
  1. int mask
)

Checks flag activity.

Implementation

bool isOn(int mask) {
  return (mask & value) != 0;
}