I have been searching all through freaks.net and google for anything on this with no luck.
I know that the + - * and / operators work in #define statements, I thought that the ^(power) operator worked also. Evidently I'm wrong
#define GOOBER (2^8)
evaluates to 10. Wouldn't be a big deal, but for actual use the 8 is replaced with a nother constant. I could calculate these everytime I adjust something, but I like having a tidy code that's easy to tweek.
My question: Is there a way to use the power operator in the precompiler to calculate constants?