Skip to content

chore: replace #pragma once with old-style include guards#4

Open
mtao wants to merge 1 commit into
mainfrom
chore/include-guards
Open

chore: replace #pragma once with old-style include guards#4
mtao wants to merge 1 commit into
mainfrom
chore/include-guards

Conversation

@mtao
Copy link
Copy Markdown
Owner

@mtao mtao commented Mar 29, 2026

Summary

  • Convert all 19 headers from #pragma once to #if !defined(GUARD) / #define GUARD / #endif style
  • Guard names follow ART_PATH_COMPONENTS_HPP convention, derived from the header path relative to the include root
  • Also removes a stale duplicate #pragma once from Geometry.hpp which already had old-style guards
  • Builds and tests pass

Convert all 19 headers from #pragma once to #if !defined(GUARD)
/ #define GUARD / #endif style. Guard names follow the convention
ART_PATH_COMPONENTS_HPP, derived from the header path relative to
the include root. Also removes a stale duplicate #pragma once from
Geometry.hpp which already had old-style guards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant