6.9 #include
Syntax
#include "file"
#include <file>
Description
Include a file. The two forms differ in that (1) searches the current working directory first, and is functionally equivalent with the assembler INCLUDE directive. (2) does not search the current working directory unless explicitly specifying it with an "." entry in the include path. Both forms will search a built-in known place after any explicitly specified path. This is the location for the partdef.inc include files supplied with the assembler.
It is strongly discouraged to use absolute path-names in
#include
directives, as this makes it difficult to move projects
between different directories/computers. Use the -I
argument to specify
the include path, or set it up in Atmel Studio =>
Project => Assembler Options.
Examples
#include <m48def.inc>
#include "mydefs.inc"