pragma: add minimalist message pragma documentation
documents 6e93c1ba73
This commit is contained in:
parent
6e93c1ba73
commit
80b27bde5e
1 changed files with 17 additions and 0 deletions
|
@ -1119,6 +1119,23 @@ parameter with the <tt/#pragma/.
|
|||
remembered and output as a whole when translation is finished.
|
||||
|
||||
|
||||
<sect1><tt>#pragma message (<message>)</tt><label id="pragma-message"><p>
|
||||
|
||||
This pragma is used to display informational messages at compile-time.
|
||||
|
||||
The message intented to be displayed must be a string literal.
|
||||
|
||||
Example:
|
||||
<tscreen><verb>
|
||||
#pragma message ("in a bottle")
|
||||
</verb></tscreen>
|
||||
|
||||
Results in the compiler outputting the following to stderr:
|
||||
<tscreen><verb>
|
||||
example.c(42): Note: in a bottle
|
||||
</verb></tscreen>
|
||||
|
||||
|
||||
<sect1><tt>#pragma optimize ([push,] on|off)</tt><label id="pragma-optimize"><p>
|
||||
|
||||
Switch optimization on or off. If the argument is "off", optimization is
|
||||
|
|
Loading…
Add table
Reference in a new issue