r/C_Programming • • 23d ago

Could someone explain the practical differences between #pragma once and traditional include guards (#ifndef, #define, and #endif)?

83 Upvotes

58 comments sorted by

View all comments

Show parent comment

2

u/torsten_dev 23d ago

It was proposed in n2896 but didn't gain consensus see section 5.38 and it hasn't been brought up again.