Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add #pragma once as the header guard to prevent redefinition error #35

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

FoodChain1028
Copy link
Collaborator

  • This is a hotfix to prevent redefinition error.
  • add #pragma once for each file to only compile once

#pragma once is a header guard that serves the same purpose as the traditional one #ifndef/ #define / #endif pattern.

@FoodChain1028 FoodChain1028 self-assigned this Jan 9, 2025
@FoodChain1028 FoodChain1028 merged commit 6625f13 into main Jan 9, 2025
1 check passed
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.

2 participants