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

Verify that '#pragma once' is an acceptable header guard lock #3

Open
Savagedlight opened this issue Apr 12, 2016 · 1 comment
Open

Comments

@Savagedlight
Copy link
Owner

Check whether all compilers in base supports the '#pragma once' guard lock. Do also consider corner cases, like multiple copies of the header being included, from different paths.

Reported by: Ravi Pokala

@asomers
Copy link
Contributor

asomers commented May 1, 2017

Nope. While the base compilers all technically support #pragma once, it is considered bad style. Except for a few things in contrib, no header file in the base system uses it. Better to use the usual ifndef IFCONFIG_H style.

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

No branches or pull requests

2 participants