r/C_Programming • u/Yuki_pop • 28d ago
Could someone explain the practical differences between #pragma once and traditional include guards (#ifndef, #define, and #endif)?
80
Upvotes
r/C_Programming • u/Yuki_pop • 28d ago
View all comments
Show parent comment
2
u/FedUp233 28d ago
Too bad you canโt put something like this in a macro. Then you could just type
#include โonce.hโ
#once
In each file! ๐๐