Skip to content

Document double quotes syntax of #include directives #773

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

Merged
merged 1 commit into from
Sep 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Language/Structure/Further Syntax/include.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ The main reference page for AVR C libraries (AVR is a reference to the Atmel chi
Note that `#include`, similar to `link:../define[#define]`, has no semicolon terminator, and the compiler will yield cryptic error messages if you add one.
[%hardbreaks]


[float]
=== Syntax
`#include <LibraryFile.h>` +
`#include "LocalFile.h"`


[float]
=== Parameters
`LibraryFile.h`: when the angle brackets syntax is used, the libraries paths will be searched for the file. +
`LocalFile.h`: When the double quotes syntax is used, the folder of the file using the `#include` directive will be searched for the specified file, then the libraries paths if it was not found in the local path. Use this syntax for header files in the sketch's folder.

--
// OVERVIEW SECTION ENDS

Expand Down