We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#pragma once
In many header files (*.h), we do something like
*.h
#ifndef NAME_OF_HEADER_H #define NAME_OF_HEADER_H // code here... #endif
We're using a modern compiler now, so these could just be replaced by:
#pragma once // rest of code here...
This applies to any and all header files, except for those where the macro that is defined is used elsewhere (e.g. #if DX pops up in places).
#if DX
The text was updated successfully, but these errors were encountered:
not an expert, but i'd assume it's best to avoid non-standard macros that may cause subtle errors in compilers that may not support it, no?
Sorry, something went wrong.
@c0des1ayr In general, you're right. However, #pragma once is supported in every widely-used compiler :)
No branches or pull requests
In many header files (
*.h
), we do something likeWe're using a modern compiler now, so these could just be replaced by:
This applies to any and all header files, except for those where the macro that is defined is used elsewhere (e.g.
#if DX
pops up in places).The text was updated successfully, but these errors were encountered: