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

Convert private C++ headers to .hpp file extension #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ChrisThrasher
Copy link
Member

Closes #208

These are C++ source code files. To be consistent with SFML they should use an .hpp extension. This also has the benefit of making it easier to readers to understand whether a given file contains C or C++ code.

@eXpl0it3r
Copy link
Member

This makes it really tricky to differentiate between CSFML headers and SFML headers next to each other.

Like this:
image

@ChrisThrasher
Copy link
Member Author

CSFML ought to use a CSFML prefix for its headers. I think that's a better solution that using an ambiguous file extension. I'm aware we can't do this in CSFML 2 but we can do it in v3 and we can do it for the private headers.

@eXpl0it3r
Copy link
Member

I guess for CSFML 3 it's okay to move everything to CSFML/

@ChrisThrasher
Copy link
Member Author

ChrisThrasher commented Mar 12, 2024

I guess for CSFML 3 it's okay to move everything to CSFML/

master...include_dir

Here's a patch that changes the SFML/ directory prefix to CSFML/. If you like this I'll submit a PR.

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.

Use .hpp extension for private C++ headers
2 participants