PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 120

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
#DEFINE
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
106
#DEFINE id text
#DEFINE id(x,y...) text
id is a preprocessor identifier, text is any text, x,y and so on are local preprocessor
identifiers, and in this form there may be one or more identifiers separated by commas.
Used to provide a simple string replacement of the ID with the given text from this
point of the program and on.
In the second form (a C macro) the local identifiers are matched up with similar identifiers
in the text and they are replaced with text passed to the macro where it is used.
If the text contains a string of the form #idx then the result upon evaluation will be
the parameter id concatenated with the string x.
If the text contains a string of the form #idx#idy then parameter idx is concatenated
with parameter idy forming a new identifier.
#define
a=a+BITS;
#define hi(x)
a=hi(a);
ex_stwt.c,
#UNDEF, #IFDEF,
or
ex_macro.c
BITS
//same as
//same as
8
(x<<4)
#IFNDEF
a=a+8;
a=(a<<4);

Related parts for PCDIDE COMPILER