|
|
|
|
|
by SoftwareMaven
4793 days ago
|
|
#define DEBUG 1
#if DEBUG
test_code()
#else
real_code()
#endif
Much more readable and the DEBUG macro can be defined in a common header, so all of the code can share it.The comment trick isn't useless during development, but I'd see myself using a macro rather than trying to remember just where a slash goes. |
|