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

Make src/lib/support to use pragma once in headers #3147

Merged
merged 3 commits into from
Oct 9, 2020

Conversation

andy31415
Copy link
Contributor

@andy31415 andy31415 commented Oct 8, 2020

Problem

Include header guards are more typing, pollute the global define space, have a chance to mistmatch ending comments (if we ever rename and copy&paste).

#pragma once is supported most compilers already, let's use it.

Summary of Changes

Use pragma once.

Part of #3138

@mspang mspang merged commit 340dec6 into project-chip:master Oct 9, 2020
kpschoedel pushed a commit to kpschoedel/connectedhomeip that referenced this pull request Oct 9, 2020
* Make src/lib/support to use pragma once in headers

* Remove extra newline in files
@andy31415 andy31415 deleted the 01_lib_support_pragma_once branch October 9, 2020 18:25
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.

4 participants