Skip to content

Commit 2af27e5

Browse files
authored
Merge pull request #773 from per1234/include-syntax
Document double quotes syntax of #include directives
2 parents e96a2e2 + 2cde7a3 commit 2af27e5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Language/Structure/Further Syntax/include.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ The main reference page for AVR C libraries (AVR is a reference to the Atmel chi
2727
Note that `#include`, similar to `link:../define[#define]`, has no semicolon terminator, and the compiler will yield cryptic error messages if you add one.
2828
[%hardbreaks]
2929

30+
31+
[float]
32+
=== Syntax
33+
`#include <LibraryFile.h>` +
34+
`#include "LocalFile.h"`
35+
36+
37+
[float]
38+
=== Parameters
39+
`LibraryFile.h`: when the angle brackets syntax is used, the libraries paths will be searched for the file. +
40+
`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.
41+
3042
--
3143
// OVERVIEW SECTION ENDS
3244

0 commit comments

Comments
 (0)