Using #define to on and off functions

well that's his question - how to write that code with #ifdef or #if I suppose

but without code tags even for pseudo code, I'm out