Skip to content

Commit

Permalink
docs/contributing: add #pragma once to Coding Conventions
Browse files Browse the repository at this point in the history
This supersedes the older include guard mechanism since all the
compilers now support it. It's easier for new users and less prone
to error.
  • Loading branch information
abrasive authored and drashna committed Sep 15, 2018
1 parent 48a992f commit b1f1163
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Most of our style is pretty easy to pick up on, but right now it's not entirely
* Do not write obvious comments
* If you not sure if a comment is obvious, go ahead and include it.
* In general we don't wrap lines, they can be as long as needed. If you do choose to wrap lines please do not wrap any wider than 76 columns.
* We use `#pragma once` at the start of header files rather than old-style include guards (`#ifndef THIS_FILE_H`, `#define THIS_FILE_H`, ..., `#endif`)

# General Guidelines

Expand Down

0 comments on commit b1f1163

Please sign in to comment.