English
Language : 

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