Keil Logo

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
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.