|
CC78K0S Datasheet, PDF (155/520 Pages) NEC – C Compiler Ver.1.30 or Later Language | |||
|
◁ |
CHAPTER 9 PREPROCESSING DIRECTIVES (COMPILER DIRECTIVES)
(6) #define directive
Macro Replacement
#define
FUNCTION
The #define directive in its simplest form replaces the specified identifier with a given replacement list whenever
the same identifier appears in the source code after the definition by this directive.
SYNTAX
#define identifier replacement-list new-line
EXAMPLE
#define PAI 3.1415
EXPLANATION
In the above example, the identifier âPAIâ will be replaced with â3.1415â whenever it appears in the source code
after definition by this directive.
Userâs Manual U14872EJ1V0UM
155
|
▷ |