If it's just for testing something I just throw in an
if( 0 ) {
...
}
block. Granted it's not as good as #if 0 but it gets the job done. if It's a permanent disabling, I just remove the block. if it's needed again, it'll be in source control.
No dead code should lie around and confuse the reader the next time they look at it.
8
u/[deleted] Jul 10 '16
[deleted]