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

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
#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 PCWHD IDE COMPILER