Avoid "else" trick with #ifdef, hopefully makes code easier to follow.