Keil™, An ARM® Company

Technical Support

C51: #PRAGMA MESSAGE AND #PRAGMA ERROR


Information in this article applies to:

  • C51 Version 6.20
  • C251 Version 3.20
  • C166 Version 4.20

QUESTION

Does the compiler support #pragma message or #pragma error?

ANSWER

No. The compiler does not support either of these pragmas.

You may use the ANSI standard #error directive which allows you to emit error messages. For example:

#if 1
#error This is an error message
#endif

Last Reviewed: Monday, May 17, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure