Adds example to fatal pragma.
This commit is contained in:
parent
c6c8366925
commit
b4d6a6aafe
1 changed files with 5 additions and 1 deletions
|
|
@ -4708,7 +4708,11 @@ fatal pragma
|
||||||
------------
|
------------
|
||||||
The `fatal`:idx: pragma is used to make the compiler output an error message
|
The `fatal`:idx: pragma is used to make the compiler output an error message
|
||||||
with the given content. In contrast to the ``error`` pragma, compilation
|
with the given content. In contrast to the ``error`` pragma, compilation
|
||||||
is guaranteed to be aborted by this pragma.
|
is guaranteed to be aborted by this pragma. Example:
|
||||||
|
|
||||||
|
.. code-block:: nimrod
|
||||||
|
when not defined(objc):
|
||||||
|
{.fatal: "Compile this program with the objc command!".}
|
||||||
|
|
||||||
warning pragma
|
warning pragma
|
||||||
--------------
|
--------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue