IOTA

You can use iota to easily assign successive integer values to a set of integer constants. It starts at zero, and increments by 1 for every constant declaration, resetting to 0 when the word const appears in the code again. The way that we’ve used this means that each of our severity levels has an integer value, with the more severe levels having a higher value.