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.

PreProcessor<br />

to see if the specified ID is known to the preprocessor (created with a<br />

#DEFINE). #IFDEF checks to see if defined and #IFNDEF checks to see if it is<br />

not defined.<br />

Examples:<br />

#define debug // Comment line out for no debug<br />

...<br />

#ifdef DEBUG<br />

printf("debug point a");<br />

#endif<br />

Example Files:<br />

Also See:<br />

ex_sqw.c<br />

#IF<br />

#ignore_warnings<br />

Syntax:<br />

Elements:<br />

Purpose:<br />

#ignore_warnings ALL<br />

#IGNORE_WARNINGS NONE<br />

#IGNORE_WARNINGS warnings<br />

warnings is one or more warning numbers separated by commas<br />

This function will suppress warning messages from the compiler. ALL indicates<br />

no warning will be generated. NONE indicates all warnings will be generated. If<br />

numbers are listed then those warnings are suppressed.<br />

Examples:<br />

#ignore_warnings 203<br />

while(TRUE) {<br />

#ignore_warnings NONE<br />

Example<br />

Files:<br />

Also See:<br />

None<br />

Warning messages<br />

#import (options)<br />

Syntax:<br />

Elements:<br />

#IMPORT (options)<br />

FILE=filname<br />

The filename of the object you want to link with this compilation.<br />

ONLY=symbol+symbol+.....+symbol<br />

Only the listed symbols will imported from the specified relocatable object<br />

file. If neither ONLY or EXCEPT is used, all symbols are imported.<br />

109

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

Saved successfully!

Ooh no, something went wrong!