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

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
#IF exp #ELSE #ELIF #ENDIF
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
#if expr
#elif expr
#else
#endif
expr is an expression with constants, standard operators and/or preprocessor
identifiers. Code is any standard c source code.
The pre-processor evaluates the constant expression and if it is non-zero will
process the lines up to the optional #ELSE or the #ENDIF.
Note: you may NOT use C variables in the #IF. Only preprocessor identifiers
created via #define can be used.
The preprocessor expression DEFINED(id) may be used to return 1 if the id is
defined and 0 if it is not.
== and != operators now accept a constant string as both operands. This allows
for compile time comparisons and can be used with GETENV() when it returns a
string result.
#if MAX_VALUE > 255
#else
#endif
#if getenv(“DEVICE”)==”PIC16F877”
#endif
ex_extee.c
#IFDEF, #IFNDEF,
code
code
code
long value;
int value;
//do something special for the PIC16F877
//Optional
//Optional, any number may be used
getenv()
115

Related parts for PCDIDE COMPILER