From 2cde7a35cb86c2e284dfd8bf18b1ef3ff91ce951 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 29 Aug 2020 10:29:35 -0700 Subject: [PATCH] Document double quotes syntax of #include directives --- Language/Structure/Further Syntax/include.adoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Language/Structure/Further Syntax/include.adoc b/Language/Structure/Further Syntax/include.adoc index e4020e65e..478a1ab28 100644 --- a/Language/Structure/Further Syntax/include.adoc +++ b/Language/Structure/Further Syntax/include.adoc @@ -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 ` + +`#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