This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error command

The following sequence worked in previous versions; what is the correct syntax now?

#ifndef SYS_HW
error: SYS_HW must be defined !!
#endif

Parents
  • Jon, try error without the '#'. Of course this is a syntax error but that's what The Chrysler Corporation seems to have done.

    Yep. I did that and it generates all kinds of error messages. But, in reality, that's probably OK. The only time that line gets processed is when the SFR is not defined. The goal, then, is to halt execution and this does that. The error messages just don't indicate the REAL reason.

    Jon

Reply
  • Jon, try error without the '#'. Of course this is a syntax error but that's what The Chrysler Corporation seems to have done.

    Yep. I did that and it generates all kinds of error messages. But, in reality, that's probably OK. The only time that line gets processed is when the SFR is not defined. The goal, then, is to halt execution and this does that. The error messages just don't indicate the REAL reason.

    Jon

Children
No data