Skip to content

Conversation

@avengerdsf
Copy link
Owner

Motivation

  • Prevent multiple-definition linker/compile errors caused by unit_color.h being included from multiple translation units by adding an include guard.

Description

  • Add #pragma once to include/unit_color.h so the color constants are defined only once when headers are included across multiple source files.

Testing

  • Ran cmake -S . -B build_new which configured successfully; cmake --build build_new completed and produced the main_toolbox binary; running ./build_new/main_toolbox started the interactive menu (process required interactive input and was terminated).

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants