As long as we are counting LOC before compiling, that can be solved easily:
if (false) {
/* original code stays here, as we are payed by LOC */
} else {
/* write your new code here */
}