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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Error and Warning Messages(169) strange character after # (*) (Preprocessor)There is an unexpected character after #.(170) symbol "*" not defined in #undef (Preprocessor)The symbol supplied as argument to #undef was not already defined. This warning may be disabledwith some compilers. This warning can be avoided with code like:#ifdef SYM#undef SYM /* only undefine if defined */#endif(171) wrong number of macro arguments for "*" - * instead of * (Preprocessor)A macro has been invoked with the wrong number of arguments, e.g.:#define ADD(a, b) (a+b)ADD(1, 2, 3) /* woops -- only two arguments required */(172) formal parameter expected after # (Preprocessor)The stringization operator # (not to be confused with the leading # used for preprocessor controllines) must be followed by a formal macro parameter, e.g.:#define str(x) #y /* woops -- did you mean x instead of y? */If you need to stringize a token, you will need to define a special macro to do it, e.g.#define __mkstr__(x) #xthen use __mkstr__(token) wherever you need to convert a token into a string.(173) undefined symbol "*" in #if, 0 used (Preprocessor)A symbol on a #if expression was not a defined preprocessor macro. For the purposes of thisexpression, its value has been taken as zero. This warning may be disabled with some compilers.Example:#if FOO+BAR /* e.g. FOO was never #defined */#define GOOD#endif239

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

Saved successfully!

Ooh no, something went wrong!