This isn\'t a typical question to solve a specific problem, it\'s rather a brain exercise, but I wonder if anyone has a solution.
In development we often need to disable
1 ? foo() : bar();
This executes foo(). Change the 1 to a 0 to execute bar() instead.
foo()
1
0
bar()
Unlike the suggestions involving preprocessor directives or comments, both possible branches are compiled, so you get the full benefit of the compiler's syntax checking.