ARM Technical Support Knowledge Articles

#PRAGMA MESSAGE AND #PRAGMA ERROR

Applies to: C51 C Compiler

Answer


Information in this article applies to:


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

Article last edited on: 2004-05-17 16:20:22

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential