logoalt Hacker News

eqvinox12/09/20241 replyview on HN

One thing is wrong with it: a large part of C developers either doesn't know it exists, or doesn't know what it does.

… which I'd fix by using it more :D


Replies

kevin_thibedeau12/09/2024

It doesn't exist in C. It's solely a compiler extension. Include guards get the same performance benefit as #pragma once on compilers that support it. There's no point in embracing laziness with no upside.

show 1 reply