logoalt Hacker News

4gotunameagainyesterday at 7:10 AM0 repliesview on HN

This is trickier than it initially seems. Using preprocessor directives to include or exclude swaths of code is a very common thing, and implementing a compiler error as you described would break the building of countless C codebases.