11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Error and Warning Messages(126) can’t use a string in an #if (Preprocessor)The preprocessor does not allow the use of strings in #if expressions, e.g.:#if MESSAGE > “hello” /* no string operations allowed by the preprocessor */#define DEBUG#endif(127) bad #if ... defined() syntax (Preprocessor)The defined() pseudo-function in a preprocessor expression requires its argument to be a singlename. The name must start with a letter and should be enclosed in parentheses, e.g.:#if defined(a&b) /* woops -- defined expects a name, not an expression */input = read();#endif(128) illegal operator in #if (Preprocessor)A #if expression has an illegal operator. Check for correct syntax, e.g.:#if FOO = 6 /* woops -- should that be: #if FOO == 5 ? */(129) unexpected "\" in #if (Preprocessor)The backslash is incorrect in the #if statement, e.g.:#if FOO == \34#define BIG#endif(130) #if sizeof, unknown type "*" (Preprocessor)An unknown type was used in a preprocessor sizeof().sizeof() with basic types, or pointers to basic types, e.g.:The preprocessor can only evaluate#if sizeof(unt) == 2 /* woops -- should be: #if sizeof(int) == 2 */i = 0xFFFF;#endif233

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

Saved successfully!

Ooh no, something went wrong!