English
Language : 

CC78K0S Datasheet, PDF (159/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 9 PREPROCESSING DIRECTIVES (COMPILER DIRECTIVES)
9.5 #error Preprocessing Directive
The #error preprocessing directive is a directive that outputs a message including the specified preprocessing
tokens and incompletely terminates a compile. This preprocessing is used to terminate a compile.
This preprocessing is specified as follows.
#error "preprocessing-token-string" new-line
[Example]
In this example, the macro name _ _K0S _ _, which indicates the device series that this compiler has, is used. If
the device is the 78K/0S Series, the program between #if and #else is compiled. In the other cases, the
program between #else and #endif is compiled, but the compilation will be terminated with an error message
“not for 78K0S” output by #error directive.
#if _ _K0S_ _
.
.
.
#else
#error "not for 78K0S"
.
.
.
#endif
User’s Manual U14872EJ1V0UM
159