Note. You can put the #include command line everywhere in the program, but normally, all inclusions are located in the beginning of the source file text.
Syntax:
#include <file_name>
Example:
#include <system.h>
The preprocessor changes this line to the contents of the system.h file. The angle brackets indicate that the system.h file will be taken from the standard catalog. The directory, where ChipProg is installed, and the list of directories specified in the "include-file directory" field in the Script Files dialog, are automatically used as the standard directory. If the file is not found in any of the standard directories, then the current directory will be checked.
#include "file_name"
Example:
#include "defs.h"
This structure operates the same way as the #include <system.h>, except that the compiler searches the current directory first.
|