17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

current compilation unit.<br />

The #TYPE directive allows the keywords UNSIGNED and SIGNED to set the default<br />

data type.<br />

Examples:<br />

#TYPE SHORT= 8 , INT= 16 , LONG= 32<br />

#TYPE default=area<br />

addressmod (user_ram_block, 0x100, 0x1FF);<br />

#type default=user_ram_block // all variable declarations<br />

// in this area will be in<br />

// 0x100-0x1FF<br />

#type default=<br />

// restores memory allocation<br />

// back to normal<br />

#TYPE SIGNED<br />

Example<br />

Files:<br />

Also See:<br />

...<br />

void main()<br />

{<br />

int variable1; // variable1 can only take values from -128 to 127<br />

...<br />

...<br />

}<br />

ex_cust.c<br />

None<br />

#undef<br />

Syntax:<br />

Elements:<br />

Purpose:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

#UNDEF id<br />

id is a pre-processor id defined via #DEFINE<br />

The specified pre-processor ID will no longer have meaning to the preprocessor.<br />

#if MAXSIZE

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!