1
0
mirror of https://codeberg.org/emilwilliams/chad_standard synced 2024-11-22 03:54:18 -05:00
chad_standard/reasoning/header-guard
2024-07-20 17:17:05 +00:00
..
a.h Define At Beginning Header Guard 2024-07-20 17:17:05 +00:00
ac.h Define At Beginning Header Guard 2024-07-20 17:17:05 +00:00
b.h Define At Beginning Header Guard 2024-07-20 17:17:05 +00:00
bc.h Define At Beginning Header Guard 2024-07-20 17:17:05 +00:00
main.c Define At Beginning Header Guard 2024-07-20 17:17:05 +00:00
README.md Define At Beginning Header Guard 2024-07-20 17:17:05 +00:00

Justification for Define At End Header Guard -> Define At Beginning Header Guard.

Define At End Header Guard is a very pretty style for Header Guards, however is nonviable due to:

Define At End Header Guard fail to properly handle circular dependence as the define comes after the dependency, hence using Define At Beginning Header Guard is always preferable.

This was brought to light by an long-term Anonymous contributor, and is responsible for this change and justification.