English
Language : 

CC78K4 Datasheet, PDF (142/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 9 PREPROCESSING DIRECTIVES (COMPILER DIRECTIVES)
(5) #else directive
Conditional Translation Directives
#else
FUNCTION
The #else directive tells the translation phase of C to discard a section of source code that follows #else if the
identifier of the preceding conditional translation directive is nonzero.
The #if, #elif, #ifdef, or #ifndef directive may precede the #else directive.
SYNTAX
#else line feed group
EXAMPLE
#define ON
#ifdef ON
:
#else
:
#endif
EXPLANATION
In the above example, the identifier “ON” has been defined with the #define directive. Thus, the source code
between #ifndef and #endif will be translated. If the identifier “ON” has never been defined, the source code
between #else and #endif will be translated.
142
User’s Manual U15556EJ1V0UM