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)?
79
Upvotes
r/C_Programming • u/Yuki_pop • 28d ago
View all comments
Show parent comment
0
u/Huuf 28d ago
I interpreted this text as such:
in my opinion, if you have this problem where you are somehow getting the same header included through different paths there is something wrong with your file layout in most all cases (others are free to disagree).