|
CC78K4 Datasheet, PDF (146/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language | |||
|
◁ |
CHAPTER 9 PREPROCESSING DIRECTIVES (COMPILER DIRECTIVES)
(2) #include â â
Source File Inclusion Directive
#include â â
FUNCTION
If the directive form is #include â â, the current working directory is first searched for the header file specified in
double quotes. If it is not found, the directory specified by the -i compiler option, the directory specified by the
INC78K environment variable, and the directory \NECTools32\INC78K4 registered in the registry are searched.
The compiler then replaces the #include directive line with the entire contents of the specified file.
SYNTAX
#include âfile-nameâ line feed
EXAMPLE
#include âmyprog. hâ
EXPLANATION
In the above example, the C compiler searches the current working directory, the directory specified by the
INC78K environment variable, and the directory \NECTools32\INC78K4 registered in the registry for the file
myprog.h specified in double quotes and replaces the directive line #include âmyprog.hâ with the entire
contents of the specified file myprog.h.
Caution The above directories differ depending on the installation method.
146
Userâs Manual U15556EJ1V0UM
|
▷ |