English
Language : 

CC78K0S Datasheet, PDF (152/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 9 PREPROCESSING DIRECTIVES (COMPILER DIRECTIVES)
(3) #include preprocessing token string directive
Source File Inclusion
#include token string
FUNCTION
If the directive form is #include preprocessing token string, the header file to be searched is specified by macro
replacement and the #include directive line is replaced by the entire contents of the specified file.
SYNTAX
#include preprocessing token string new-line
EXAMPLE
#define INCFILE "myprog.h"
#define INCFILE
EXPLANATION
In the inclusion of other source files with the directive form #include preprocessing token string, the specified
“preprocessing token string” must be replaced by <file-name> or “file name” using macro replacement. If the
token string is replaced by <file-name>, the C compiler searches the directory specified by the -i compiler option,
directory specified by the INC78K environment variable, and directory \NECTools32\INC78K0S registered in the
registry for the specified file. If the token string is replaced by “file name”, the current working directory is
searched. If the specified file is not found, the directory specified by the -i compiler option, directory specified by
the INC78K environment variable, and directory \NECTools32\INC78K0S registered in the registry is searched.
152
User’s Manual U14872EJ1V0UM