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

EMSUSD-1351 - MayaUsd: Code cleanup - No pragma once #3811

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

seando-adsk
Copy link
Collaborator

EMSUSD-1351 - MayaUsd: Code cleanup

  • Adhere to include guard (instead of "#pragma once") from our coding standard.

* Adhere to include guard (instead of "#pragma once")
  from our coding standard.
@seando-adsk seando-adsk added the build Related to building maya-usd repository label Jun 7, 2024
@seando-adsk
Copy link
Collaborator Author

According to our coding standard:

Do not use #pragma once to avoid files being #include’d multiple times (which can cause duplication of definitions & compilation errors). While it's widely supported, it's a non-standard and non-portable extension.

Never use reserved identifiers, like underscore followed immediately by an uppercase letter or double underscore.

@seando-adsk seando-adsk self-assigned this Jun 7, 2024
@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jun 7, 2024
@seando-adsk seando-adsk merged commit 4e2ac03 into dev Jun 7, 2024
11 checks passed
@seando-adsk seando-adsk deleted the donnels/EMSUSD-1351/no_pragma_once branch June 7, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to building maya-usd repository ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants