Macro for enabling/disabling parts of code

Something similar was discussed for disabling assertations, and I think the solution here might be able to be adapted to your case: @assert alternatives? - #14 by WschW