
A6.9 Preprocessing 151
A6.9.3 Constant definition
If any text follows the defined constant, all matching occurrences of that text will be
replaced by the specified text:
#define identifier replacement
text
#definecs identifier replacement
text
For example, after
#define MAXVAL 100
all instances of MAXVAL (including Maxval, maxval, etc.) will be replaced by 100.
Another example is
#definecs MINVAL 100+12
where MINVAL is replaced by the expression 100+12. Note that macro arguments are
not supported, nor is reference to another defined replacement.
Komentarze do niniejszej Instrukcji