Code:
define CONST_1 1
define CONST_2 2
// etc.


Then you can combine the flags with the binary operators.


Always learn from history, to be sure you make the same mistakes again...